Changeset 8738 for trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionDataTableView.cs
- Timestamp:
- 10/04/12 15:42:21 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionDataTableView.cs
r8108 r8738 63 63 Content.CollectionReset += new CollectionItemsChangedEventHandler<IRun>(Content_CollectionReset); 64 64 Content.UpdateOfRunsInProgressChanged += new EventHandler(Content_UpdateOfRunsInProgressChanged); 65 Content.AlgorithmNameChanged += new EventHandler(Content_AlgorithmNameChanged); 65 66 } 66 67 protected override void DeregisterContentEvents() { … … 69 70 Content.CollectionReset -= new CollectionItemsChangedEventHandler<IRun>(Content_CollectionReset); 70 71 Content.UpdateOfRunsInProgressChanged -= new EventHandler(Content_UpdateOfRunsInProgressChanged); 72 Content.AlgorithmNameChanged -= new EventHandler(Content_AlgorithmNameChanged); 71 73 base.DeregisterContentEvents(); 72 74 } … … 93 95 RemoveRuns(e.OldItems); 94 96 AddRuns(e.Items); 97 } 98 private void Content_AlgorithmNameChanged(object sender, EventArgs e) { 99 if (InvokeRequired) 100 Invoke(new EventHandler(Content_AlgorithmNameChanged), sender, e); 101 else UpdateCaption(); 95 102 } 96 103 private void Content_UpdateOfRunsInProgressChanged(object sender, EventArgs e) { … … 123 130 runMapping.Clear(); 124 131 132 UpdateCaption(); 125 133 if (Content != null) { 126 134 UpdateDataTableComboBox(); … … 195 203 } 196 204 205 private void UpdateCaption() { 206 Caption = Content != null ? Content.AlgorithmName + "Data Table" : ViewAttribute.GetViewName(GetType()); 207 } 208 197 209 private void UpdateDataRowComboBox() { 198 210 dataRowComboBox.Items.Clear();
Note: See TracChangeset
for help on using the changeset viewer.