Changeset 9911 for branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3/StatisticalTestingView.cs
- Timestamp:
- 08/27/13 12:19:41 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/StatisticalTesting/HeuristicLab.Analysis.Statistics/3.3/StatisticalTestingView.cs
r9813 r9911 31 31 32 32 namespace HeuristicLab.Analysis.Statistics { 33 [View(" RunCollectionStatistical Testing")]33 [View("Statistical Testing")] 34 34 [Content(typeof(RunCollection), false)] 35 35 public sealed partial class StatisticalTestingView : ItemView { … … 59 59 RebuildDataTable(); 60 60 } 61 UpdateCaption(); 62 } 63 64 private void UpdateCaption() { 65 Caption = Content != null ? Content.OptimizerName + " Statistical Testing" : ViewAttribute.GetViewName(GetType()); 61 66 } 62 67 … … 64 69 protected override void RegisterContentEvents() { 65 70 base.RegisterContentEvents(); 71 Content.ItemsAdded += new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_ItemsAdded); 72 Content.ItemsRemoved += new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_ItemsRemoved); 73 Content.CollectionReset += new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_CollectionReset); 74 Content.UpdateOfRunsInProgressChanged += Content_UpdateOfRunsInProgressChanged; 66 75 } 67 76 68 77 protected override void DeregisterContentEvents() { 69 78 base.DeregisterContentEvents(); 79 Content.ItemsAdded -= new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_ItemsAdded); 80 Content.ItemsRemoved -= new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_ItemsRemoved); 81 Content.CollectionReset -= new HeuristicLab.Collections.CollectionItemsChangedEventHandler<IRun>(Content_CollectionReset); 82 Content.UpdateOfRunsInProgressChanged -= Content_UpdateOfRunsInProgressChanged; 83 } 84 85 private void Content_CollectionReset(object sender, HeuristicLab.Collections.CollectionItemsChangedEventArgs<IRun> e) { 86 RebuildDataTable(); 87 } 88 89 private void Content_ItemsRemoved(object sender, HeuristicLab.Collections.CollectionItemsChangedEventArgs<IRun> e) { 90 RebuildDataTable(); 91 } 92 93 private void Content_ItemsAdded(object sender, HeuristicLab.Collections.CollectionItemsChangedEventArgs<IRun> e) { 94 RebuildDataTable(); 95 } 96 97 void Content_UpdateOfRunsInProgressChanged(object sender, EventArgs e) { 98 if (!Content.UpdateOfRunsInProgress) { 99 RebuildDataTable(); 100 } 70 101 } 71 102 #endregion
Note: See TracChangeset
for help on using the changeset viewer.