Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/09/19 12:47:01 (6 years ago)
Author:
pfleck
Message:

#2947

  • Added backwards compatibility for IndexedDataTable.VisualProperties.Title
  • Removed syncing of ItemName and VisualProperties.Title when (Indexed)DataTable is active.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2947_ConfigurableIndexedDataTable/HeuristicLab.Analysis/3.3/DataVisualization/IndexedDataTable.cs

    r16156 r16524  
    105105    }
    106106
     107    #region BackwardsCompatibility3.3
     108    // Using the name as title is the old style
     109    [Storable(DefaultValue = true)]
     110    private bool useNameAsTitle = false;
     111    #endregion
     112
     113    [StorableHook(HookType.AfterDeserialization)]
     114    private void AfterDeserialization() {
     115      // BackwardsCompatibility3.3
     116      #region Backwards compatible code, remove with 3.4
     117      // Previously, the Name of the IndexedDataTable was used as Title
     118      if (useNameAsTitle && string.IsNullOrEmpty(VisualProperties.Title)) {
     119        VisualProperties.Title = Name;
     120        useNameAsTitle = false;
     121      }
     122      #endregion
     123    }
     124
    107125    public event EventHandler VisualPropertiesChanged;
    108126    protected virtual void OnVisualPropertiesChanged() {
Note: See TracChangeset for help on using the changeset viewer.