Changeset 11522 for stable/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionView.cs
- Timestamp:
- 11/04/14 18:35:25 (10 years ago)
- Location:
- stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 11344-11345,11419
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionView.cs
r11170 r11522 23 23 using System.Collections; 24 24 using System.Collections.Generic; 25 using System.ComponentModel; 25 26 using System.Drawing; 26 27 using System.Linq; … … 79 80 item.ItemImageChanged -= new EventHandler(Item_ItemImageChanged); 80 81 item.ToStringChanged -= new EventHandler(Item_ToStringChanged); 81 item. Changed -= new EventHandler(Item_Changed);82 item.PropertyChanged -= Item_PropertyChanged; 82 83 } 83 84 private void RegisterItemEvents(IRun item) { 84 85 item.ItemImageChanged += new EventHandler(Item_ItemImageChanged); 85 86 item.ToStringChanged += new EventHandler(Item_ToStringChanged); 86 item. Changed += new EventHandler(Item_Changed);87 item.PropertyChanged += Item_PropertyChanged; 87 88 } 88 89 … … 385 386 try { 386 387 RunCollection.Modify(); 387 } 388 finally { 388 } finally { 389 389 ReadOnly = false; 390 390 } … … 462 462 } 463 463 } 464 private void Item_ Changed(object sender,EventArgs e) {464 private void Item_PropertyChanged(object sender, PropertyChangedEventArgs e) { 465 465 if (InvokeRequired) 466 this.Invoke( new EventHandler(Item_Changed), sender, e);466 this.Invoke((Action<object, PropertyChangedEventArgs>)Item_PropertyChanged, sender, e); 467 467 else { 468 468 IRun run = (IRun)sender; 469 UpdateRun(run); 469 if (e.PropertyName == "Color" || e.PropertyName == "Visible") 470 UpdateRun(run); 470 471 } 471 472 }
Note: See TracChangeset
for help on using the changeset viewer.