Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/11/10 05:01:42 (14 years ago)
Author:
swagner
Message:

Implemented reviewers' comments (#893)

Location:
trunk/sources/HeuristicLab.Optimization.Views/3.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/EngineAlgorithmView.Designer.cs

    r3525 r3759  
    4646    private void InitializeComponent() {
    4747      this.engineLabel = new System.Windows.Forms.Label();
    48       this.createUserDefinedAlgorithmButton = new System.Windows.Forms.Button();
    4948      this.engineComboBox = new System.Windows.Forms.ComboBox();
    5049      this.engineTabPage = new System.Windows.Forms.TabPage();
     
    119118      //
    120119      this.executionTimeLabel.Location = new System.Drawing.Point(487, 532);
    121       this.executionTimeLabel.TabIndex = 10;
     120      this.executionTimeLabel.TabIndex = 9;
    122121      //
    123122      // executionTimeTextBox
    124123      //
    125124      this.executionTimeTextBox.Location = new System.Drawing.Point(576, 529);
    126       this.executionTimeTextBox.TabIndex = 11;
     125      this.executionTimeTextBox.TabIndex = 10;
    127126      //
    128127      // resultsTabPage
     
    169168      this.engineLabel.TabIndex = 0;
    170169      this.engineLabel.Text = "&Engine:";
    171       //
    172       // createUserDefinedAlgorithmButton
    173       //
    174       this.createUserDefinedAlgorithmButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
    175       this.createUserDefinedAlgorithmButton.Location = new System.Drawing.Point(150, 525);
    176       this.createUserDefinedAlgorithmButton.Name = "createUserDefinedAlgorithmButton";
    177       this.createUserDefinedAlgorithmButton.Size = new System.Drawing.Size(254, 24);
    178       this.createUserDefinedAlgorithmButton.TabIndex = 9;
    179       this.createUserDefinedAlgorithmButton.Text = "&Create User Defined Algorithm";
    180       this.toolTip.SetToolTip(this.createUserDefinedAlgorithmButton, "Create User Defined Algorithm from this Algorithm");
    181       this.createUserDefinedAlgorithmButton.UseVisualStyleBackColor = true;
    182       this.createUserDefinedAlgorithmButton.Click += new System.EventHandler(this.createUserDefinedAlgorithmButton_Click);
    183170      //
    184171      // engineComboBox
     
    273260      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    274261      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    275       this.Controls.Add(this.createUserDefinedAlgorithmButton);
    276262      this.Name = "EngineAlgorithmView";
    277263      this.Size = new System.Drawing.Size(713, 549);
    278264      this.Controls.SetChildIndex(this.stopButton, 0);
    279       this.Controls.SetChildIndex(this.createUserDefinedAlgorithmButton, 0);
    280265      this.Controls.SetChildIndex(this.resetButton, 0);
    281266      this.Controls.SetChildIndex(this.pauseButton, 0);
     
    306291
    307292    protected System.Windows.Forms.Label engineLabel;
    308     protected System.Windows.Forms.Button createUserDefinedAlgorithmButton;
    309293    protected System.Windows.Forms.ComboBox engineComboBox;
    310294    protected System.Windows.Forms.TabPage engineTabPage;
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/EngineAlgorithmView.cs

    r3640 r3759  
    108108      operatorGraphViewHost.ReadOnly = true;
    109109      engineComboBox.Enabled = Content != null && !ReadOnly;
    110       createUserDefinedAlgorithmButton.Enabled = Content != null && !Locked;
    111110    }
    112111
     
    143142      }
    144143    }
    145 
    146     protected virtual void createUserDefinedAlgorithmButton_Click(object sender, EventArgs e) {
    147       IContentView view = MainFormManager.MainForm.ShowContent(Content.CreateUserDefinedAlgorithm());
    148       if (view != null) {
    149         view.ReadOnly = this.ReadOnly;
    150         view.Locked = this.Locked;
    151       }
    152     }
    153144  }
    154145}
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/UserDefinedAlgorithmView.Designer.cs

    r3505 r3759  
    5858      this.globalScopeTabPage.SuspendLayout();
    5959      this.SuspendLayout();
    60       //
    61       // createUserDefinedAlgorithmButton
    62       //
    63       this.createUserDefinedAlgorithmButton.Enabled = false;
    64       this.toolTip.SetToolTip(this.createUserDefinedAlgorithmButton, "Create User Defined Algorithm from this Algorithm");
    65       this.createUserDefinedAlgorithmButton.Visible = false;
    6660      //
    6761      // engineComboBox
Note: See TracChangeset for help on using the changeset viewer.