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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.