Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/06/10 03:37:29 (14 years ago)
Author:
swagner
Message:

Continued work on algorithm batch processing (#947).

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

Legend:

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

    r3262 r3275  
    6464      this.saveFileDialog = new System.Windows.Forms.SaveFileDialog();
    6565      this.stopButton = new System.Windows.Forms.Button();
     66      this.runsTabPage = new System.Windows.Forms.TabPage();
     67      this.runsView = new HeuristicLab.Optimization.Views.RunCollectionView();
    6668      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
    6769      this.tabControl.SuspendLayout();
     
    6971      this.problemTabPage.SuspendLayout();
    7072      this.resultsTabPage.SuspendLayout();
     73      this.runsTabPage.SuspendLayout();
    7174      this.SuspendLayout();
    7275      //
     
    8992      this.tabControl.Controls.Add(this.problemTabPage);
    9093      this.tabControl.Controls.Add(this.resultsTabPage);
     94      this.tabControl.Controls.Add(this.runsTabPage);
    9195      this.tabControl.Location = new System.Drawing.Point(0, 52);
    9296      this.tabControl.Name = "tabControl";
     
    281285      this.stopButton.UseVisualStyleBackColor = true;
    282286      this.stopButton.Click += new System.EventHandler(this.stopButton_Click);
     287      //
     288      // runsTabPage
     289      //
     290      this.runsTabPage.Controls.Add(this.runsView);
     291      this.runsTabPage.Location = new System.Drawing.Point(4, 22);
     292      this.runsTabPage.Name = "runsTabPage";
     293      this.runsTabPage.Padding = new System.Windows.Forms.Padding(3);
     294      this.runsTabPage.Size = new System.Drawing.Size(671, 374);
     295      this.runsTabPage.TabIndex = 3;
     296      this.runsTabPage.Text = "Runs";
     297      this.runsTabPage.UseVisualStyleBackColor = true;
     298      //
     299      // runsView
     300      //
     301      this.runsView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     302                  | System.Windows.Forms.AnchorStyles.Left)
     303                  | System.Windows.Forms.AnchorStyles.Right)));
     304      this.runsView.Caption = "RunCollection";
     305      this.runsView.Content = null;
     306      this.runsView.Location = new System.Drawing.Point(6, 6);
     307      this.runsView.Name = "runsView";
     308      this.runsView.Size = new System.Drawing.Size(659, 362);
     309      this.runsView.TabIndex = 0;
    283310      //
    284311      // AlgorithmView
     
    311338      this.problemTabPage.ResumeLayout(false);
    312339      this.resultsTabPage.ResumeLayout(false);
     340      this.runsTabPage.ResumeLayout(false);
    313341      this.ResumeLayout(false);
    314342      this.PerformLayout();
     
    336364    protected HeuristicLab.Optimization.Views.ResultCollectionView resultsView;
    337365    protected System.Windows.Forms.Button stopButton;
     366    protected System.Windows.Forms.TabPage runsTabPage;
     367    protected RunCollectionView runsView;
    338368
    339369  }
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/AlgorithmView.cs

    r3274 r3275  
    9696        problemViewHost.Content = null;
    9797        resultsView.Content = null;
     98        runsView.Content = null;
    9899        tabControl.Enabled = false;
    99100        startButton.Enabled = pauseButton.Enabled = stopButton.Enabled = resetButton.Enabled = false;
     
    106107        problemViewHost.Content = Content.Problem;
    107108        resultsView.Content = Content.Results.AsReadOnly();
     109        runsView.Content = Content.Runs;
    108110        tabControl.Enabled = true;
    109111        EnableDisableButtons();
     
    144146        newProblemButton.Enabled = openProblemButton.Enabled = saveProblemButton.Enabled = Content.ExecutionState != ExecutionState.Started;
    145147        problemViewHost.Enabled = Content.ExecutionState != ExecutionState.Started;
    146         resultsView.Enabled = Content.ExecutionState != ExecutionState.Started;
    147148        EnableDisableButtons();
    148149      }
     
    237238    }
    238239    protected virtual void resetButton_Click(object sender, EventArgs e) {
    239       if (Content.Results.Count > 0) {
    240         if (MessageBox.Show(this, "Clear all results of this run?", "Clear All Results?", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1) == DialogResult.Yes)
     240      if (Content.Runs.Count > 0) {
     241        if (MessageBox.Show(this, "Clear all runs executed so far?", "Clear All Runs?", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
    241242          Content.Prepare(true);
    242243        else
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/ExperimentView.Designer.cs

    r3274 r3275  
    4747      this.tabControl = new System.Windows.Forms.TabControl();
    4848      this.optimizersTabPage = new System.Windows.Forms.TabPage();
     49      this.optimizerListView = new HeuristicLab.Optimization.Views.OptimizerListView();
    4950      this.startButton = new System.Windows.Forms.Button();
    5051      this.stopButton = new System.Windows.Forms.Button();
     
    5354      this.executionTimeTextBox = new System.Windows.Forms.TextBox();
    5455      this.pauseButton = new System.Windows.Forms.Button();
    55       this.optimizerListView = new HeuristicLab.Optimization.Views.OptimizerListView();
     56      this.runsTabPage = new System.Windows.Forms.TabPage();
     57      this.runsView = new HeuristicLab.Optimization.Views.RunCollectionView();
    5658      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
    5759      this.tabControl.SuspendLayout();
    5860      this.optimizersTabPage.SuspendLayout();
     61      this.runsTabPage.SuspendLayout();
    5962      this.SuspendLayout();
    6063      //
     
    7578                  | System.Windows.Forms.AnchorStyles.Right)));
    7679      this.tabControl.Controls.Add(this.optimizersTabPage);
     80      this.tabControl.Controls.Add(this.runsTabPage);
    7781      this.tabControl.Location = new System.Drawing.Point(0, 52);
    7882      this.tabControl.Name = "tabControl";
     
    9195      this.optimizersTabPage.Text = "Optimizers";
    9296      this.optimizersTabPage.UseVisualStyleBackColor = true;
     97      //
     98      // optimizerListView
     99      //
     100      this.optimizerListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     101                  | System.Windows.Forms.AnchorStyles.Left)
     102                  | System.Windows.Forms.AnchorStyles.Right)));
     103      this.optimizerListView.Caption = "OptimizerList";
     104      this.optimizerListView.Content = null;
     105      this.optimizerListView.Location = new System.Drawing.Point(6, 6);
     106      this.optimizerListView.Name = "optimizerListView";
     107      this.optimizerListView.Size = new System.Drawing.Size(659, 362);
     108      this.optimizerListView.TabIndex = 0;
    93109      //
    94110      // startButton
     
    159175      this.pauseButton.Click += new System.EventHandler(this.pauseButton_Click);
    160176      //
    161       // optimizerListView
    162       //
    163       this.optimizerListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     177      // runsTabPage
     178      //
     179      this.runsTabPage.Controls.Add(this.runsView);
     180      this.runsTabPage.Location = new System.Drawing.Point(4, 22);
     181      this.runsTabPage.Name = "runsTabPage";
     182      this.runsTabPage.Padding = new System.Windows.Forms.Padding(3);
     183      this.runsTabPage.Size = new System.Drawing.Size(671, 374);
     184      this.runsTabPage.TabIndex = 2;
     185      this.runsTabPage.Text = "Runs";
     186      this.runsTabPage.UseVisualStyleBackColor = true;
     187      //
     188      // runsView
     189      //
     190      this.runsView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    164191                  | System.Windows.Forms.AnchorStyles.Left)
    165192                  | System.Windows.Forms.AnchorStyles.Right)));
    166       this.optimizerListView.Caption = "OptimizerList";
    167       this.optimizerListView.Content = null;
    168       this.optimizerListView.Location = new System.Drawing.Point(6, 6);
    169       this.optimizerListView.Name = "optimizerListView";
    170       this.optimizerListView.Size = new System.Drawing.Size(659, 362);
    171       this.optimizerListView.TabIndex = 0;
     193      this.runsView.Caption = "RunCollection";
     194      this.runsView.Content = null;
     195      this.runsView.Location = new System.Drawing.Point(6, 6);
     196      this.runsView.Name = "runsView";
     197      this.runsView.Size = new System.Drawing.Size(659, 362);
     198      this.runsView.TabIndex = 0;
    172199      //
    173200      // ExperimentView
     
    198225      this.tabControl.ResumeLayout(false);
    199226      this.optimizersTabPage.ResumeLayout(false);
     227      this.runsTabPage.ResumeLayout(false);
    200228      this.ResumeLayout(false);
    201229      this.PerformLayout();
     
    213241    private System.Windows.Forms.Button pauseButton;
    214242    private OptimizerListView optimizerListView;
     243    private System.Windows.Forms.TabPage runsTabPage;
     244    private RunCollectionView runsView;
    215245
    216246  }
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/ExperimentView.cs

    r3274 r3275  
    7171      if (Content == null) {
    7272        optimizerListView.Content = null;
     73        runsView.Content = null;
    7374        tabControl.Enabled = false;
    7475        startButton.Enabled = pauseButton.Enabled = stopButton.Enabled = resetButton.Enabled = false;
     
    7778      } else {
    7879        optimizerListView.Content = Content.Optimizers;
     80        runsView.Content = Content.Runs;
    7981        tabControl.Enabled = true;
    8082        EnableDisableButtons();
     
    125127    }
    126128    private void resetButton_Click(object sender, EventArgs e) {
    127       if (MessageBox.Show(this, "Clear all runs executed so far?", "Clear All Runs?", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
    128         Content.Prepare(true);
    129       else
    130         Content.Prepare(false);
     129      if (Content.Runs.Count > 0) {
     130        if (MessageBox.Show(this, "Clear all runs executed so far?", "Clear All Runs?", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes)
     131          Content.Prepare(true);
     132        else
     133          Content.Prepare(false);
     134      } else {
     135        Content.Prepare();
     136      }
    131137    }
    132138    #endregion
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/UserDefinedAlgorithmView.Designer.cs

    r3262 r3275  
    7676      this.tabControl.Controls.SetChildIndex(this.globalScopeTabPage, 0);
    7777      this.tabControl.Controls.SetChildIndex(this.operatorGraphTabPage, 0);
     78      this.tabControl.Controls.SetChildIndex(this.runsTabPage, 0);
    7879      this.tabControl.Controls.SetChildIndex(this.resultsTabPage, 0);
    7980      this.tabControl.Controls.SetChildIndex(this.engineTabPage, 0);
Note: See TracChangeset for help on using the changeset viewer.