- Timestamp:
- 01/29/10 01:44:57 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorTreeView.cs
r2708 r2713 47 47 /// <remarks>Uses property <see cref="ViewBase.Item"/> of base class <see cref="ViewBase"/>. 48 48 /// No own data storage present.</remarks> 49 public IOperator Operator{50 get { return (IOperator) Item; }51 set { base. Item= value; }49 public new IOperator Content { 50 get { return (IOperator)base.Content; } 51 set { base.Content = value; } 52 52 } 53 53 … … 71 71 public OperatorTreeView(IOperator op) 72 72 : this() { 73 Operator= op;73 Content = op; 74 74 } 75 75 … … 78 78 /// </summary> 79 79 /// <remarks>Calls <see cref="ViewBase.UpdateControls"/> of base class <see cref="ViewBase"/>.</remarks> 80 protected override void On ObjectChanged() {81 base.On ObjectChanged();80 protected override void OnContentChanged() { 81 base.OnContentChanged(); 82 82 if (graphTreeView.Nodes.Count > 0) 83 83 RemoveTreeNode(graphTreeView.Nodes[0]); 84 84 graphTreeView.Enabled = false; 85 85 Caption = "Operator"; 86 if ( Operator!= null) {87 Caption = Operator.Name + " (" + Operator.GetType().Name + ")";86 if (Content != null) { 87 Caption = Content.Name + " (" + Content.GetType().Name + ")"; 88 88 TreeNode root = new TreeNode(); 89 FillTreeNode(root, Operator);89 FillTreeNode(root, Content); 90 90 graphTreeView.Nodes.Add(root); 91 91 graphTreeView.Enabled = true;
Note: See TracChangeset
for help on using the changeset viewer.