- Timestamp:
- 12/21/10 16:08:55 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis/3.3/DataVisualization/DataTable.cs
r5097 r5150 128 128 foreach (DataRow row in e.Items) 129 129 this.RegisterRowEvents(row); 130 131 this.OnColumnsChanged(); 130 132 this.OnColumnNamesChanged(); 131 133 this.OnReset(); … … 134 136 foreach (DataRow row in e.Items) 135 137 this.DeregisterRowEvents(row); 138 139 this.OnColumnsChanged(); 136 140 this.OnColumnNamesChanged(); 137 141 this.OnReset(); … … 142 146 foreach (DataRow row in e.Items) 143 147 this.RegisterRowEvents(row); 148 149 this.OnColumnsChanged(); 144 150 this.OnColumnNamesChanged(); 145 151 this.OnReset(); … … 150 156 foreach (DataRow row in e.Items) 151 157 this.RegisterRowEvents(row); 158 159 if (e.OldItems.Count() != e.Items.Count()) 160 this.OnColumnsChanged(); 152 161 this.OnColumnNamesChanged(); 153 162 this.OnReset(); … … 239 248 if (handler != null) handler(this, EventArgs.Empty); 240 249 } 250 public event EventHandler ColumnsChanged; 251 protected virtual void OnColumnsChanged() { 252 var handler = ColumnsChanged; 253 if (handler != null) handler(this, EventArgs.Empty); 254 } 255 public event EventHandler RowsChanged; 256 protected virtual void OnRowsChanged() { 257 var handler = RowsChanged; 258 if (handler != null) handler(this, EventArgs.Empty); 259 } 241 260 public event EventHandler ColumnNamesChanged; 242 261 protected virtual void OnColumnNamesChanged() {
Note: See TracChangeset
for help on using the changeset viewer.