Changeset 7979
- Timestamp:
- 06/11/12 11:33:39 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis.Views/3.3/DataTableView.cs
r7977 r7979 68 68 Content.Rows.ItemsReplaced += new CollectionItemsChangedEventHandler<DataRow>(Rows_ItemsReplaced); 69 69 Content.Rows.CollectionReset += new CollectionItemsChangedEventHandler<DataRow>(Rows_CollectionReset); 70 foreach (DataRow row in Content.Rows)71 RegisterDataRowEvents(row);72 70 } 73 71 … … 137 135 } 138 136 137 protected virtual void RemoveDataRows(IEnumerable<DataRow> rows) { 138 foreach (var row in rows) { 139 DeregisterDataRowEvents(row); 140 Series series = chart.Series[row.Name]; 141 chart.Series.Remove(series); 142 if (invisibleSeries.Contains(series)) 143 invisibleSeries.Remove(series); 144 } 145 RecalculateAxesScale(chart.ChartAreas[0]); 146 } 147 139 148 private void ConfigureSeries(Series series, DataRow row) { 140 149 RemoveCustomPropertyIfExists(series, "PointWidth"); … … 263 272 double yZoomInterval = Math.Pow(10, digits); 264 273 this.chart.ChartAreas[0].CursorY.Interval = yZoomInterval; 265 }266 267 protected virtual void RemoveDataRows(IEnumerable<DataRow> rows) {268 foreach (var row in rows) {269 DeregisterDataRowEvents(row);270 Series series = chart.Series[row.Name];271 chart.Series.Remove(series);272 if (invisibleSeries.Contains(series))273 invisibleSeries.Remove(series);274 }275 RecalculateAxesScale(chart.ChartAreas[0]);276 274 } 277 275
Note: See TracChangeset
for help on using the changeset viewer.