Changeset 2713 for trunk/sources/HeuristicLab.Core.Views/3.3/ScopeView.cs
- Timestamp:
- 01/29/10 01:44:57 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/ScopeView.cs
r2687 r2713 46 46 /// <remarks>Uses property <see cref="ViewBase.Item"/> of base class <see cref="ViewBase"/>. 47 47 /// No own data storage present.</remarks> 48 public IScope Scope{49 get { return (IScope) Item; }50 set { base. Item= value; }48 public new IScope Content { 49 get { return (IScope)base.Content; } 50 set { base.Content = value; } 51 51 } 52 52 … … 69 69 public ScopeView(IScope scope) 70 70 : this() { 71 Scope= scope;71 Content = scope; 72 72 } 73 73 … … 76 76 /// </summary> 77 77 /// <remarks>Calls <see cref="ViewBase.UpdateControls"/> of base class <see cref="ViewBase"/>.</remarks> 78 protected override void On ObjectChanged() {79 base.On ObjectChanged();78 protected override void OnContentChanged() { 79 base.OnContentChanged(); 80 80 if (scopesTreeView.Nodes.Count > 0) { 81 81 RemoveTreeNode(scopesTreeView.Nodes[0]); 82 82 scopesTreeView.Nodes.Clear(); 83 83 } 84 variableCollectionView. NamedItemCollection= null;84 variableCollectionView.Content = null; 85 85 variableCollectionView.Enabled = false; 86 if ( Scope== null) {86 if (Content == null) { 87 87 Caption = "Scope"; 88 88 scopesTreeView.Enabled = false; 89 89 } else { 90 Caption = Scope.Name + " (" + Scope.GetType().Name + ")";90 Caption = Content.Name + " (" + Content.GetType().Name + ")"; 91 91 scopesTreeView.Enabled = true; 92 scopesTreeView.Nodes.Add(CreateTreeNode( Scope));92 scopesTreeView.Nodes.Add(CreateTreeNode(Content)); 93 93 } 94 94 } … … 133 133 TreeNode node = scopesTreeView.GetNodeAt(e.X, e.Y); 134 134 if ((node != null) && (node.Tag is IScope)) { 135 variableCollectionView. NamedItemCollection= ((IScope)node.Tag).Variables;135 variableCollectionView.Content = ((IScope)node.Tag).Variables; 136 136 variableCollectionView.Enabled = true; 137 137 } else { 138 variableCollectionView. NamedItemCollection= null;138 variableCollectionView.Content = null; 139 139 variableCollectionView.Enabled = false; 140 140 if (node == null) scopesTreeView.SelectedNode = null;
Note: See TracChangeset
for help on using the changeset viewer.