Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/25/10 02:34:23 (14 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • continued work on adapting and refactoring HeuristicLab.Data according to the changes in HeuristicLab.Core
  • unified visual appearance of views
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  
    4646    private void InitializeComponent() {
    4747      this.parameterCollectionView = new HeuristicLab.Core.Views.ParameterCollectionView();
     48      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
    4849      this.SuspendLayout();
    4950      //
    5051      // nameTextBox
    5152      //
     53      this.errorProvider.SetIconAlignment(this.nameTextBox, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);
     54      this.errorProvider.SetIconPadding(this.nameTextBox, 2);
    5255      this.nameTextBox.Size = new System.Drawing.Size(418, 20);
    5356      //
     
    5659      this.descriptionTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    5760                  | 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);
    5962      //
    6063      // parameterCollectionView
     
    6568      this.parameterCollectionView.Caption = "ParameterCollection";
    6669      this.parameterCollectionView.ItemCollection = null;
    67       this.parameterCollectionView.Location = new System.Drawing.Point(0, 122);
     70      this.parameterCollectionView.Location = new System.Drawing.Point(0, 119);
    6871      this.parameterCollectionView.Name = "parameterCollectionView";
    6972      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);
    7175      this.parameterCollectionView.TabIndex = 4;
    7276      //
    73       // OperatorBaseView
     77      // OperatorView
    7478      //
    7579      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    7680      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    7781      this.Controls.Add(this.parameterCollectionView);
    78       this.Name = "OperatorBaseView";
     82      this.Name = "OperatorView";
    7983      this.Size = new System.Drawing.Size(490, 353);
    80       this.Controls.SetChildIndex(this.parameterCollectionView, 0);
     84      this.Controls.SetChildIndex(this.nameTextBox, 0);
    8185      this.Controls.SetChildIndex(this.nameLabel, 0);
    8286      this.Controls.SetChildIndex(this.descriptionLabel, 0);
    83       this.Controls.SetChildIndex(this.nameTextBox, 0);
    8487      this.Controls.SetChildIndex(this.descriptionTextBox, 0);
     88      this.Controls.SetChildIndex(this.parameterCollectionView, 0);
     89      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
    8590      this.ResumeLayout(false);
    8691      this.PerformLayout();
  • trunk/sources/HeuristicLab.Operators.Views/3.3/OperatorView.cs

    r2664 r2676  
    3737  [Content(typeof(Operator), true)]
    3838  public partial class OperatorView : NamedItemView {
    39     public Operator OperatorBase {
     39    public Operator Operator {
    4040      get { return (Operator)base.Item; }
    4141      set { base.Item = value; }
     
    5252    /// </summary>
    5353    /// <param name="item">The item that should be displayed.</param>
    54     public OperatorView(Operator operatorBase)
     54    public OperatorView(Operator op)
    5555      : this() {
    56       OperatorBase = operatorBase;
     56      Operator = op;
    5757    }
    5858
    5959    protected override void OnObjectChanged() {
    6060      base.OnObjectChanged();
    61       if (OperatorBase == null) {
     61      if (Operator == null) {
    6262        parameterCollectionView.NamedItemCollection = null;
    6363      } else {
    64         parameterCollectionView.NamedItemCollection = ((IOperator)OperatorBase).Parameters;
     64        parameterCollectionView.NamedItemCollection = ((IOperator)Operator).Parameters;
    6565      }
    6666    }
Note: See TracChangeset for help on using the changeset viewer.