Changeset 2713 for trunk/sources/HeuristicLab.Operators.Views
- Timestamp:
- 01/29/10 01:44:57 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Operators.Views/3.3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators.Views/3.3/CombinedOperatorView.Designer.cs
r2684 r2713 109 109 | System.Windows.Forms.AnchorStyles.Right))); 110 110 this.parameterCollectionView.Caption = "ParameterCollection"; 111 this.parameterCollectionView.ItemCollection = null;112 111 this.parameterCollectionView.Location = new System.Drawing.Point(6, 6); 113 112 this.parameterCollectionView.Name = "parameterCollectionView"; 114 this.parameterCollectionView.NamedItemCollection = null;115 this.parameterCollectionView.Object = null;116 113 this.parameterCollectionView.Size = new System.Drawing.Size(466, 326); 117 114 this.parameterCollectionView.TabIndex = 0; … … 123 120 | System.Windows.Forms.AnchorStyles.Right))); 124 121 this.operatorGraphView.Caption = "Operator Graph"; 125 this.operatorGraphView.Item = null;126 122 this.operatorGraphView.Location = new System.Drawing.Point(6, 6); 127 123 this.operatorGraphView.Name = "operatorGraphView"; 128 this.operatorGraphView.Object = null;129 this.operatorGraphView.OperatorGraph = null;130 124 this.operatorGraphView.Size = new System.Drawing.Size(466, 326); 131 125 this.operatorGraphView.TabIndex = 0; -
trunk/sources/HeuristicLab.Operators.Views/3.3/CombinedOperatorView.cs
r2684 r2713 37 37 [Content(typeof(CombinedOperator), true)] 38 38 public partial class CombinedOperatorView : NamedItemView { 39 public CombinedOperator CombinedOperator{40 get { return (CombinedOperator)base. Item; }41 set { base. Item= value; }39 public new CombinedOperator Content { 40 get { return (CombinedOperator)base.Content; } 41 set { base.Content = value; } 42 42 } 43 43 … … 54 54 public CombinedOperatorView(CombinedOperator combinedOperator) 55 55 : this() { 56 Co mbinedOperator= combinedOperator;56 Content = combinedOperator; 57 57 } 58 58 59 protected override void On ObjectChanged() {60 base.On ObjectChanged();61 if (Co mbinedOperator== null) {62 parameterCollectionView. NamedItemCollection= null;63 operatorGraphView. OperatorGraph= null;59 protected override void OnContentChanged() { 60 base.OnContentChanged(); 61 if (Content == null) { 62 parameterCollectionView.Content = null; 63 operatorGraphView.Content = null; 64 64 tabControl.Enabled = false; 65 65 } else { 66 parameterCollectionView. NamedItemCollection = ((IOperator)CombinedOperator).Parameters;67 operatorGraphView. OperatorGraph = CombinedOperator.OperatorGraph;66 parameterCollectionView.Content = ((IOperator)Content).Parameters; 67 operatorGraphView.Content = Content.OperatorGraph; 68 68 tabControl.Enabled = true; 69 69 } -
trunk/sources/HeuristicLab.Operators.Views/3.3/OperatorView.Designer.cs
r2676 r2713 67 67 | System.Windows.Forms.AnchorStyles.Right))); 68 68 this.parameterCollectionView.Caption = "ParameterCollection"; 69 this.parameterCollectionView.ItemCollection = null;70 69 this.parameterCollectionView.Location = new System.Drawing.Point(0, 119); 71 70 this.parameterCollectionView.Name = "parameterCollectionView"; 72 this.parameterCollectionView.NamedItemCollection = null;73 this.parameterCollectionView.Object = null;74 71 this.parameterCollectionView.Size = new System.Drawing.Size(490, 234); 75 72 this.parameterCollectionView.TabIndex = 4; -
trunk/sources/HeuristicLab.Operators.Views/3.3/OperatorView.cs
r2676 r2713 37 37 [Content(typeof(Operator), true)] 38 38 public partial class OperatorView : NamedItemView { 39 public Operator Operator{40 get { return (Operator)base. Item; }41 set { base. Item= value; }39 public new Operator Content { 40 get { return (Operator)base.Content; } 41 set { base.Content = value; } 42 42 } 43 43 … … 54 54 public OperatorView(Operator op) 55 55 : this() { 56 Operator= op;56 Content = op; 57 57 } 58 58 59 protected override void On ObjectChanged() {60 base.On ObjectChanged();61 if ( Operator== null) {62 parameterCollectionView. NamedItemCollection= null;59 protected override void OnContentChanged() { 60 base.OnContentChanged(); 61 if (Content == null) { 62 parameterCollectionView.Content = null; 63 63 } else { 64 parameterCollectionView. NamedItemCollection = ((IOperator)Operator).Parameters;64 parameterCollectionView.Content = ((IOperator)Content).Parameters; 65 65 } 66 66 }
Note: See TracChangeset
for help on using the changeset viewer.