Free cookie consent management tool by TermsFeed Policy Generator

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

#1734: Added StorableConstructor to all storable DataImporter classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/ChangeValues/SearchWithMatchOperationCommandBase.cs

    r7267 r9614  
    2222using System;
    2323using System.Collections.Generic;
    24 using System.Linq;
    25 using System.Text;
     24using System.Drawing;
    2625using HeuristicLab.DataImporter.Data.CommandBase;
     26using HeuristicLab.DataImporter.Data.Model;
    2727using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    28 using HeuristicLab.DataImporter.Data.Model;
    29 using System.Drawing;
    3028
    3129namespace HeuristicLab.DataImporter.Command {
     
    3937  [StorableClass]
    4038  public abstract class SearchWithMatchOperationCommandBase : SearchCommandBase {
    41     private SearchWithMatchOperationCommandBase()
    42       : base(null, string.Empty, null) {
    43     }
    44 
    45     public SearchWithMatchOperationCommandBase(DataSet dataSet, string columnGroupName, int[] affectedColumns) :
     39    [StorableConstructor]
     40    protected SearchWithMatchOperationCommandBase(bool deserializing) : base(deserializing) { }
     41    protected SearchWithMatchOperationCommandBase(DataSet dataSet, string columnGroupName, int[] affectedColumns) :
    4642      base(dataSet, columnGroupName, affectedColumns) {
    4743    }
     
    121117          break;
    122118        case MatchOperation.Larger:
    123           compareFunction = (left, right) => { 
     119          compareFunction = (left, right) => {
    124120            if (left == null && right == null) return false;
    125121            else if (left != null && right == null) return false;
    126122            else if (left == null && right != null) return false;
    127             return left.CompareTo(right) < 0; };
     123            return left.CompareTo(right) < 0;
     124          };
    128125          break;
    129126        default:
Note: See TracChangeset for help on using the changeset viewer.