Changeset 11594 for branches/Breadcrumbs/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionTableView.cs
- Timestamp:
- 11/27/14 11:23:37 (9 years ago)
- Location:
- branches/Breadcrumbs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Breadcrumbs
- Property svn:ignore
-
old new 8 8 FxCopResults.txt 9 9 Google.ProtocolBuffers-0.9.1.dll 10 Google.ProtocolBuffers-2.4.1.473.dll 10 11 HeuristicLab 3.3.5.1.ReSharper.user 11 12 HeuristicLab 3.3.6.0.ReSharper.user 12 13 HeuristicLab.4.5.resharper.user 13 14 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development 14 16 HeuristicLab.resharper.user 15 17 ProtoGen.exe … … 17 19 _ReSharper.HeuristicLab 18 20 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests 19 22 _ReSharper.HeuristicLab.ExtLibs 20 23 bin 21 24 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests23 Google.ProtocolBuffers-2.4.1.473.dll
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/Breadcrumbs/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionTableView.cs
r9910 r11594 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 3Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.ComponentModel; 24 25 using System.Linq; 25 26 using System.Windows.Forms; … … 70 71 private void RegisterRunEvents(IEnumerable<IRun> runs) { 71 72 foreach (IRun run in runs) 72 run. Changed += new EventHandler(run_Changed);73 run.PropertyChanged += run_PropertyChanged; 73 74 } 74 75 protected override void DeregisterContentEvents() { … … 83 84 private void DeregisterRunEvents(IEnumerable<IRun> runs) { 84 85 foreach (IRun run in runs) 85 run. Changed -= new EventHandler(run_Changed);86 run.PropertyChanged -= run_PropertyChanged; 86 87 } 87 88 private void Content_CollectionReset(object sender, HeuristicLab.Collections.CollectionItemsChangedEventArgs<IRun> e) { … … 100 101 else UpdateCaption(); 101 102 } 102 private void run_ Changed(object sender,EventArgs e) {103 private void run_PropertyChanged(object sender, PropertyChangedEventArgs e) { 103 104 if (suppressUpdates) return; 104 105 if (InvokeRequired) 105 this.Invoke( new EventHandler(run_Changed), sender, e);106 this.Invoke((Action<object, PropertyChangedEventArgs>)run_PropertyChanged, sender, e); 106 107 else { 107 108 IRun run = (IRun)sender; 108 UpdateRun(run); 109 if (e.PropertyName == "Color" || e.PropertyName == "Visible") 110 UpdateRun(run); 109 111 } 110 112 }
Note: See TracChangeset
for help on using the changeset viewer.