Changeset 2676 for trunk/sources/HeuristicLab.Operators.Views/3.3
- Timestamp:
- 01/25/10 02:34:23 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Operators.Views/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators.Views/3.3/OperatorView.Designer.cs
r2664 r2676 46 46 private void InitializeComponent() { 47 47 this.parameterCollectionView = new HeuristicLab.Core.Views.ParameterCollectionView(); 48 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 48 49 this.SuspendLayout(); 49 50 // 50 51 // nameTextBox 51 52 // 53 this.errorProvider.SetIconAlignment(this.nameTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 54 this.errorProvider.SetIconPadding(this.nameTextBox, 2); 52 55 this.nameTextBox.Size = new System.Drawing.Size(418, 20); 53 56 // … … 56 59 this.descriptionTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 57 60 | System.Windows.Forms.AnchorStyles.Right))); 58 this.descriptionTextBox.Size = new System.Drawing.Size(418, 90);61 this.descriptionTextBox.Size = new System.Drawing.Size(418, 87); 59 62 // 60 63 // parameterCollectionView … … 65 68 this.parameterCollectionView.Caption = "ParameterCollection"; 66 69 this.parameterCollectionView.ItemCollection = null; 67 this.parameterCollectionView.Location = new System.Drawing.Point(0, 1 22);70 this.parameterCollectionView.Location = new System.Drawing.Point(0, 119); 68 71 this.parameterCollectionView.Name = "parameterCollectionView"; 69 72 this.parameterCollectionView.NamedItemCollection = null; 70 this.parameterCollectionView.Size = new System.Drawing.Size(490, 231); 73 this.parameterCollectionView.Object = null; 74 this.parameterCollectionView.Size = new System.Drawing.Size(490, 234); 71 75 this.parameterCollectionView.TabIndex = 4; 72 76 // 73 // Operator BaseView77 // OperatorView 74 78 // 75 79 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 76 80 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 77 81 this.Controls.Add(this.parameterCollectionView); 78 this.Name = "Operator BaseView";82 this.Name = "OperatorView"; 79 83 this.Size = new System.Drawing.Size(490, 353); 80 this.Controls.SetChildIndex(this. parameterCollectionView, 0);84 this.Controls.SetChildIndex(this.nameTextBox, 0); 81 85 this.Controls.SetChildIndex(this.nameLabel, 0); 82 86 this.Controls.SetChildIndex(this.descriptionLabel, 0); 83 this.Controls.SetChildIndex(this.nameTextBox, 0);84 87 this.Controls.SetChildIndex(this.descriptionTextBox, 0); 88 this.Controls.SetChildIndex(this.parameterCollectionView, 0); 89 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 85 90 this.ResumeLayout(false); 86 91 this.PerformLayout(); -
trunk/sources/HeuristicLab.Operators.Views/3.3/OperatorView.cs
r2664 r2676 37 37 [Content(typeof(Operator), true)] 38 38 public partial class OperatorView : NamedItemView { 39 public Operator Operator Base{39 public Operator Operator { 40 40 get { return (Operator)base.Item; } 41 41 set { base.Item = value; } … … 52 52 /// </summary> 53 53 /// <param name="item">The item that should be displayed.</param> 54 public OperatorView(Operator op eratorBase)54 public OperatorView(Operator op) 55 55 : this() { 56 Operator Base = operatorBase;56 Operator = op; 57 57 } 58 58 59 59 protected override void OnObjectChanged() { 60 60 base.OnObjectChanged(); 61 if (Operator Base== null) {61 if (Operator == null) { 62 62 parameterCollectionView.NamedItemCollection = null; 63 63 } else { 64 parameterCollectionView.NamedItemCollection = ((IOperator)Operator Base).Parameters;64 parameterCollectionView.NamedItemCollection = ((IOperator)Operator).Parameters; 65 65 } 66 66 }
Note: See TracChangeset
for help on using the changeset viewer.