Changeset 2474 for trunk/sources/HeuristicLab.Core/3.2/ScopeView.cs
- Timestamp:
- 11/10/09 16:50:26 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core/3.2/ScopeView.cs
r1529 r2474 28 28 using System.Windows.Forms; 29 29 using HeuristicLab.PluginInfrastructure; 30 using HeuristicLab.Common; 30 31 31 32 namespace HeuristicLab.Core { … … 103 104 scopeExpandedTable.Add(scope, false); 104 105 if (myAutomaticUpdating) { 105 scope.SubScopeAdded += new EventHandler< ScopeIndexEventArgs>(Scope_SubScopeAdded);106 scope.SubScopeRemoved += new EventHandler< ScopeIndexEventArgs>(Scope_SubScopeRemoved);106 scope.SubScopeAdded += new EventHandler<EventArgs<IScope, int>>(Scope_SubScopeAdded); 107 scope.SubScopeRemoved += new EventHandler<EventArgs<IScope, int>>(Scope_SubScopeRemoved); 107 108 scope.SubScopesReordered += new EventHandler(Scope_SubScopesReordered); 108 109 } … … 119 120 scopeNodeTable.Remove(scope); 120 121 scopeExpandedTable.Remove(scope); 121 scope.SubScopeAdded -= new EventHandler< ScopeIndexEventArgs>(Scope_SubScopeAdded);122 scope.SubScopeRemoved -= new EventHandler< ScopeIndexEventArgs>(Scope_SubScopeRemoved);122 scope.SubScopeAdded -= new EventHandler<EventArgs<IScope, int>>(Scope_SubScopeAdded); 123 scope.SubScopeRemoved -= new EventHandler<EventArgs<IScope, int>>(Scope_SubScopeRemoved); 123 124 scope.SubScopesReordered -= new EventHandler(Scope_SubScopesReordered); 124 125 } … … 209 210 private delegate void ScopeDelegate(IScope scope); 210 211 private delegate void ScopeScopeIndexDelegate(IScope scope, IScope subScope, int index); 211 private void Scope_SubScopeAdded(object sender, ScopeIndexEventArgse) {212 private void Scope_SubScopeAdded(object sender, EventArgs<IScope, int> e) { 212 213 IScope scope = (IScope)sender; 213 214 TreeNode node = scopeNodeTable[scope]; 214 215 if (scopeExpandedTable[scope] || (scope.SubScopes.Count == 1)) 215 AddSubScope(scope, e. Scope, e.Index);216 AddSubScope(scope, e.Value, e.Value2); 216 217 } 217 218 private void AddSubScope(IScope scope, IScope subScope, int index) { … … 228 229 } 229 230 } 230 private void Scope_SubScopeRemoved(object sender, ScopeIndexEventArgse) {231 private void Scope_SubScopeRemoved(object sender, EventArgs<IScope, int> e) { 231 232 IScope scope = (IScope)sender; 232 233 TreeNode node = scopeNodeTable[scope]; 233 234 if (scopeExpandedTable[scope] || (scope.SubScopes.Count == 0)) 234 RemoveSubScope(scope, e. Scope, e.Index);235 RemoveSubScope(scope, e.Value, e.Value2); 235 236 } 236 237 private void RemoveSubScope(IScope scope, IScope subScope, int index) {
Note: See TracChangeset
for help on using the changeset viewer.