Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/06/10 01:56:04 (14 years ago)
Author:
swagner
Message:

Merged cloning refactoring branch back into trunk (#922)

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources

  • trunk/sources/HeuristicLab.Analysis/3.3/DataRowVisualProperties.cs

    r4648 r4722  
    2121
    2222using System.ComponentModel;
     23using System.Drawing;
    2324using HeuristicLab.Common;
    2425using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    25 using System.Drawing;
    2626
    2727namespace HeuristicLab.Analysis {
     
    104104    #endregion
    105105
     106    #region Storing & Cloning
     107    [StorableConstructor]
     108    protected DataRowVisualProperties(bool deserializing) : base() { }
     109    protected DataRowVisualProperties(DataRowVisualProperties original, Cloner cloner)
     110      : base(original, cloner) {
     111      this.chartType = original.chartType;
     112      this.secondYAxis = original.secondYAxis;
     113      this.color = original.color;
     114      this.startIndexZero = original.startIndexZero;
     115    }
     116    public override IDeepCloneable Clone(Cloner cloner) {
     117      return new DataRowVisualProperties(this, cloner);
     118    }
     119    #endregion
    106120    public DataRowVisualProperties() {
    107121      chartType = DataRowChartType.Line;
     
    116130      this.startIndexZero = startIndexZero;
    117131    }
    118     [StorableConstructor]
    119     protected DataRowVisualProperties(bool deserializing) { }
    120 
    121     public override IDeepCloneable Clone(Cloner cloner) {
    122       DataRowVisualProperties clone = (DataRowVisualProperties)base.Clone(cloner);
    123       clone.chartType = chartType;
    124       clone.secondYAxis = secondYAxis;
    125       clone.color = color;
    126       clone.startIndexZero = startIndexZero;
    127       return clone;
    128     }
    129132
    130133    public event PropertyChangedEventHandler PropertyChanged;
Note: See TracChangeset for help on using the changeset viewer.