Changeset 12599 for trunk/sources/HeuristicLab.Analysis.Statistics.Views/3.3/StatisticalTestsView.cs
- Timestamp:
- 07/06/15 13:52:12 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis.Statistics.Views/3.3/StatisticalTestsView.cs
r12131 r12599 40 40 private const int requiredSampleSize = 5; 41 41 private double[][] data; 42 private bool suppressUpdates = false; 42 43 43 44 public double SignificanceLevel { … … 105 106 106 107 void Content_RowsChanged(object sender, EventArgs e) { 107 RebuildDataTable(); 108 if (suppressUpdates) return; 109 if (InvokeRequired) Invoke((Action<object, EventArgs>)Content_RowsChanged, sender, e); 110 else { 111 RebuildDataTable(); 112 } 108 113 } 109 114 110 115 void Content_ColumnsChanged(object sender, EventArgs e) { 111 if (!Content.UpdateOfRunsInProgress) { 116 if (suppressUpdates) return; 117 if (InvokeRequired) Invoke((Action<object, EventArgs>)Content_ColumnsChanged, sender, e); 118 else { 112 119 RebuildDataTable(); 113 120 } … … 115 122 116 123 private void Content_CollectionReset(object sender, CollectionItemsChangedEventArgs<IRun> e) { 117 RebuildDataTable(); 124 if (suppressUpdates) return; 125 if (InvokeRequired) Invoke((Action<object, CollectionItemsChangedEventArgs<IRun>>)Content_CollectionReset, sender, e); 126 else { 127 RebuildDataTable(); 128 } 118 129 } 119 130 120 131 void Content_UpdateOfRunsInProgressChanged(object sender, EventArgs e) { 121 if (!Content.UpdateOfRunsInProgress) { 122 RebuildDataTable(); 132 if (InvokeRequired) Invoke((Action<object, EventArgs>)Content_UpdateOfRunsInProgressChanged, sender, e); 133 else { 134 suppressUpdates = Content.UpdateOfRunsInProgress; 135 if (!suppressUpdates) RebuildDataTable(); 123 136 } 124 137 }
Note: See TracChangeset
for help on using the changeset viewer.