Changeset 16524
- Timestamp:
- 01/09/19 12:47:01 (6 years ago)
- Location:
- branches/2947_ConfigurableIndexedDataTable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2947_ConfigurableIndexedDataTable/HeuristicLab.Analysis.Views/3.3/DataTableView.cs
r16149 r16524 337 337 #region Event Handlers 338 338 #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 }347 339 private void Content_VisualPropertiesChanged(object sender, EventArgs e) { 348 340 if (InvokeRequired) -
branches/2947_ConfigurableIndexedDataTable/HeuristicLab.Analysis.Views/3.3/IndexedDataTableView.cs
r16150 r16524 324 324 #region Event Handlers 325 325 #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 }334 326 private void Content_VisualPropertiesChanged(object sender, EventArgs e) { 335 327 if (InvokeRequired) -
branches/2947_ConfigurableIndexedDataTable/HeuristicLab.Analysis/3.3/DataVisualization/IndexedDataTable.cs
r16156 r16524 105 105 } 106 106 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 107 125 public event EventHandler VisualPropertiesChanged; 108 126 protected virtual void OnVisualPropertiesChanged() {
Note: See TracChangeset
for help on using the changeset viewer.