Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/22/11 09:55:59 (13 years ago)
Author:
abeham
Message:

#1611: fixed a backwards compatibility issue

Location:
trunk/sources/HeuristicLab.Analysis/3.3/DataVisualization
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Analysis/3.3/DataVisualization/DataTable.cs

    r7221 r7229  
    9393    public DataTable(string name)
    9494      : base(name) {
    95       VisualProperties = new DataTableVisualProperties();
     95      VisualProperties = new DataTableVisualProperties(name);
    9696      rows = new NamedItemCollection<DataRow>();
    97       visualProperties.Title = name;
    9897      this.RegisterRowsEvents();
    9998    }
    10099    public DataTable(string name, string description)
    101100      : base(name, description) {
    102       VisualProperties = new DataTableVisualProperties();
     101      VisualProperties = new DataTableVisualProperties(name);
    103102      rows = new NamedItemCollection<DataRow>();
    104       visualProperties.Title = name;
    105103      this.RegisterRowsEvents();
    106104    }
     
    110108    [StorableHook(HookType.AfterDeserialization)]
    111109    private void AfterDeserialization() {
    112       if (VisualProperties == null) VisualProperties = new DataTableVisualProperties();
     110      if (VisualProperties == null) VisualProperties = new DataTableVisualProperties(name);
     111      if (VisualProperties.Title == null) VisualProperties.Title = name;
    113112    }
    114113    #endregion
  • trunk/sources/HeuristicLab.Analysis/3.3/DataVisualization/DataTableVisualProperties.cs

    r7221 r7229  
    497497      this.secondYAxisMaximumAuto = true;
    498498      this.secondYAxisMaximumFixedValue = double.NaN;
     499    }
     500    public DataTableVisualProperties(string title)
     501      : this() {
     502      this.title = title;
    499503    }
    500504
Note: See TracChangeset for help on using the changeset viewer.