Free cookie consent management tool by TermsFeed Policy Generator

Changeset 16524


Ignore:
Timestamp:
01/09/19 12:47:01 (5 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.
Location:
branches/2947_ConfigurableIndexedDataTable
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2947_ConfigurableIndexedDataTable/HeuristicLab.Analysis.Views/3.3/DataTableView.cs

    r16149 r16524  
    337337    #region Event Handlers
    338338    #region Content Event Handlers
    339     protected override void Content_NameChanged(object sender, EventArgs e) {
    340       if (InvokeRequired)
    341         Invoke(new EventHandler(Content_NameChanged), sender, e);
    342       else {
    343         Content.VisualProperties.Title = Content.Name;
    344         base.Content_NameChanged(sender, e);
    345       }
    346     }
    347339    private void Content_VisualPropertiesChanged(object sender, EventArgs e) {
    348340      if (InvokeRequired)
  • branches/2947_ConfigurableIndexedDataTable/HeuristicLab.Analysis.Views/3.3/IndexedDataTableView.cs

    r16150 r16524  
    324324    #region Event Handlers
    325325    #region Content Event Handlers
    326     protected override void Content_NameChanged(object sender, EventArgs e) {
    327       if (InvokeRequired)
    328         Invoke(new EventHandler(Content_NameChanged), sender, e);
    329       else {
    330         chart.Titles[0].Text = Content.Name;
    331         base.Content_NameChanged(sender, e);
    332       }
    333     }
    334326    private void Content_VisualPropertiesChanged(object sender, EventArgs e) {
    335327      if (InvokeRequired)
  • 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.