Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/12/13 13:32:34 (12 years ago)
Author:
mkommend
Message:

#1734: Added StorableConstructor to all storable DataImporter classes.

Location:
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Data
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Data

    • Property svn:ignore
      •  

        old new  
        11bin
        22obj
         3*.user
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Data/Command/AddRowCommand.cs

    r7267 r9614  
    2323using System.Collections.Generic;
    2424using System.Linq;
    25 using System.Text;
    26 using System.Xml;
    2725using System.Windows.Forms;
    2826using HeuristicLab.DataImporter.Data.CommandBase;
     
    4038    private IEnumerable<SortOrder> oldSortOrder;
    4139
    42     private AddRowCommand()
    43       : base(null, string.Empty) {
    44     }
     40    [StorableConstructor]
     41    protected AddRowCommand(bool deserializing) : base(deserializing) { }
    4542
    4643    public AddRowCommand(DataSet dataSet, string columnGroupName, IComparable[] row)
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Data/Command/ChangeValueCommand.cs

    r7267 r9614  
    2323using System.Collections.Generic;
    2424using System.Linq;
    25 using System.Text;
    26 using System.Xml;
    2725using System.Windows.Forms;
    2826using HeuristicLab.DataImporter.Data.CommandBase;
     
    4240    private IEnumerable<SortOrder> oldSortOrder;
    4341
    44     private ChangeValueCommand()
    45       : base(null, string.Empty, -1) {
    46     }
     42    [StorableConstructor]
     43    protected ChangeValueCommand(bool deserializing) : base(deserializing) { }
    4744
    4845    public ChangeValueCommand(DataSet dataSet, string columnGroupName, int columnIndex, int position, IComparable newValue)
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Data/Command/ChangeValuesToNullCommand.cs

    r7267 r9614  
    2222using System;
    2323using System.Collections.Generic;
     24using System.Drawing;
    2425using System.Linq;
    25 using System.Text;
    26 using System.Drawing;
    27 using System.Xml;
    2826using System.Windows.Forms;
    2927using HeuristicLab.DataImporter.Data.CommandBase;
     
    4038    private IEnumerable<SortOrder> oldSortOrder;
    4139
    42     private ChangeValuesToNullCommand()
    43       : base(null, string.Empty) {
    44     }
     40    [StorableConstructor]
     41    protected ChangeValuesToNullCommand(bool deserializing) : base(deserializing) { }
    4542
    4643    public ChangeValuesToNullCommand(DataSet dataSet, string columnGroupName, IEnumerable<Point> cellIndexes)
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Data/Command/DeleteColumnCommand.cs

    r8387 r9614  
    3333    private List<int> oldSortedColumnIndices;
    3434
    35     private DeleteColumnCommand()
    36       : base(null, string.Empty, null) {
     35    [StorableConstructor]
     36    protected DeleteColumnCommand(bool deserializing)
     37      : base(deserializing) {
    3738      deletedColumns = new List<ColumnBase>();
    3839    }
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Data/Command/DeleteRowsCommand.cs

    r7267 r9614  
    2323using System.Collections.Generic;
    2424using System.Linq;
    25 using System.Text;
    26 using System.Xml;
    2725using HeuristicLab.DataImporter.Data.CommandBase;
    2826using HeuristicLab.DataImporter.Data.Model;
     
    3735    private List<IComparable[]> oldrows;
    3836
    39     private DeleteRowsCommand()
    40       : base(null, string.Empty) {
    41       this.oldrows = new List<IComparable[]>();
    42     }
     37    [StorableConstructor]
     38    protected DeleteRowsCommand(bool deserializing) : base(deserializing) { }
    4339
    4440    public DeleteRowsCommand(DataSet dataSet, string columnGroupName, IEnumerable<int> rowIndexes)
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Data/Command/InsertRowCommand.cs

    r7267 r9614  
    2020#endregion
    2121
    22 using System;
    2322using System.Collections.Generic;
    2423using System.Linq;
    25 using System.Text;
    26 using System.Xml;
    2724using System.Windows.Forms;
    2825using HeuristicLab.DataImporter.Data.CommandBase;
     
    3936    private IEnumerable<SortOrder> oldSortOrder;
    4037
    41     private InsertRowCommand()
    42       : base(null, string.Empty) {
    43     }
     38    [StorableConstructor]
     39    protected InsertRowCommand(bool deserializing) : base(deserializing) { }
    4440
    4541    public InsertRowCommand(DataSet dataSet, string columnGroupName, int position)
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Data/Command/PasteValuesCommand.cs

    r7267 r9614  
    2323using System.Collections.Generic;
    2424using System.Linq;
    25 using System.Text;
    26 using System.Globalization;
    27 using System.Xml;
    2825using System.Windows.Forms;
    2926using HeuristicLab.DataImporter.Data.CommandBase;
     
    4643    private IEnumerable<SortOrder> oldSortOrder;
    4744
    48     private PasteValuesCommand()
    49       : base(null, string.Empty) {
    50     }
     45    [StorableConstructor]
     46    protected PasteValuesCommand(bool deserializing) : base(deserializing) { }
    5147
    5248    public PasteValuesCommand(DataSet dataSet, string columnGroupName, int columnIndex, int rowIndex, string values)
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Data/Command/RenameColumnCommand.cs

    r7267 r9614  
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
    26 using System.Xml;
     22using HeuristicLab.DataImporter.Data.CommandBase;
    2723using HeuristicLab.DataImporter.Data.Model;
    28 using HeuristicLab.DataImporter.Data.CommandBase;
    2924using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    3025
     
    3732    private string oldName;
    3833
    39     private RenameColumnCommand()
    40       : base(null, string.Empty, -1) {
    41     }
     34    [StorableConstructor]
     35    protected RenameColumnCommand(bool deserializing) : base(deserializing) { }
    4236
    4337    public RenameColumnCommand(DataSet dataSet, string columnGroupName, int columnIndex, string newName)
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Data/Command/RenameColumnGroupCommand.cs

    r7267 r9614  
    2020#endregion
    2121
    22 using System;
    23 using System.Collections.Generic;
    2422using System.Linq;
    25 using System.Text;
    26 using System.Xml;
     23using HeuristicLab.DataImporter.Data.CommandBase;
    2724using HeuristicLab.DataImporter.Data.Model;
    28 using HeuristicLab.DataImporter.Data.CommandBase;
    2925using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    3026
     
    3733    private string oldName;
    3834
    39     private RenameColumnGroupCommand()
    40       : base(null, string.Empty) {
    41     }
     35    [StorableConstructor]
     36    protected RenameColumnGroupCommand(bool deserializing) : base(deserializing) { }
    4237
    4338    public RenameColumnGroupCommand(DataSet dataSet, string columnGroupName, string newName)
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Data/Command/SortCommand.cs

    r7267 r9614  
    2323using System.Collections.Generic;
    2424using System.Linq;
    25 using System.Text;
    2625using System.Windows.Forms;
    27 using System.Xml;
    2826using HeuristicLab.DataImporter.Data.CommandBase;
    2927using HeuristicLab.DataImporter.Data.Model;
     
    4139    private int[] indices;
    4240
    43     private SortCommand()
    44       : base(null, string.Empty) {
    45     }
     41    [StorableConstructor]
     42    protected SortCommand(bool deserializing) : base(deserializing) { }
    4643
    4744    public SortCommand(DataSet dataSet, string columnGroupName, int sortColumnIndex) :
Note: See TracChangeset for help on using the changeset viewer.