Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/31/11 03:24:02 (14 years ago)
Author:
swagner
Message:

Worked on OKB (#1174)

Location:
branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3

    • Property svn:ignore
      •  

        old new  
        33*.user
        44HeuristicLabClientsOKBPlugin.cs
         5*.vs10x
  • branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/RunCreation/Views/OKBAlgorithmView.Designer.cs

    r5900 r5902  
    5858      this.refreshButton = new System.Windows.Forms.Button();
    5959      this.cloneAlgorithmButton = new System.Windows.Forms.Button();
     60      this.storeRunsAutomaticallyCheckBox = new System.Windows.Forms.CheckBox();
    6061      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
    6162      this.tabControl.SuspendLayout();
     
    161162      this.parametersTabPage.Name = "parametersTabPage";
    162163      this.parametersTabPage.Padding = new System.Windows.Forms.Padding(3);
    163       this.parametersTabPage.Size = new System.Drawing.Size(671, 345);
     164      this.parametersTabPage.Size = new System.Drawing.Size(671, 371);
    164165      this.parametersTabPage.TabIndex = 1;
    165166      this.parametersTabPage.Text = "Parameters";
     
    168169      // parameterCollectionView
    169170      //
     171      this.parameterCollectionView.AllowEditingOfHiddenParameters = false;
    170172      this.parameterCollectionView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    171173                  | System.Windows.Forms.AnchorStyles.Left)
     
    176178      this.parameterCollectionView.Name = "parameterCollectionView";
    177179      this.parameterCollectionView.ReadOnly = false;
    178       this.parameterCollectionView.Size = new System.Drawing.Size(659, 333);
     180      this.parameterCollectionView.Size = new System.Drawing.Size(659, 359);
    179181      this.parameterCollectionView.TabIndex = 0;
    180182      //
     
    185187      this.resultsTabPage.Name = "resultsTabPage";
    186188      this.resultsTabPage.Padding = new System.Windows.Forms.Padding(3);
    187       this.resultsTabPage.Size = new System.Drawing.Size(671, 345);
     189      this.resultsTabPage.Size = new System.Drawing.Size(671, 371);
    188190      this.resultsTabPage.TabIndex = 2;
    189191      this.resultsTabPage.Text = "Results";
     
    200202      this.resultsView.Name = "resultsView";
    201203      this.resultsView.ReadOnly = true;
    202       this.resultsView.Size = new System.Drawing.Size(659, 333);
     204      this.resultsView.Size = new System.Drawing.Size(659, 359);
    203205      this.resultsView.TabIndex = 0;
    204206      //
    205207      // runsTabPage
    206208      //
     209      this.runsTabPage.Controls.Add(this.storeRunsAutomaticallyCheckBox);
    207210      this.runsTabPage.Controls.Add(this.storeAlgorithmInEachRunCheckBox);
    208211      this.runsTabPage.Controls.Add(this.runsView);
     
    210213      this.runsTabPage.Name = "runsTabPage";
    211214      this.runsTabPage.Padding = new System.Windows.Forms.Padding(3);
    212       this.runsTabPage.Size = new System.Drawing.Size(671, 345);
     215      this.runsTabPage.Size = new System.Drawing.Size(671, 371);
    213216      this.runsTabPage.TabIndex = 3;
    214217      this.runsTabPage.Text = "Runs";
     
    225228      this.storeAlgorithmInEachRunCheckBox.Name = "storeAlgorithmInEachRunCheckBox";
    226229      this.storeAlgorithmInEachRunCheckBox.Size = new System.Drawing.Size(161, 17);
    227       this.storeAlgorithmInEachRunCheckBox.TabIndex = 1;
     230      this.storeAlgorithmInEachRunCheckBox.TabIndex = 2;
    228231      this.storeAlgorithmInEachRunCheckBox.Text = "&Store Algorithm in each Run:";
    229232      this.toolTip.SetToolTip(this.storeAlgorithmInEachRunCheckBox, "Check to store a copy of the algorithm in each run.");
     
    241244      this.runsView.Name = "runsView";
    242245      this.runsView.ReadOnly = false;
    243       this.runsView.Size = new System.Drawing.Size(659, 333);
     246      this.runsView.Size = new System.Drawing.Size(659, 359);
    244247      this.runsView.TabIndex = 0;
    245248      //
     
    362365      this.cloneAlgorithmButton.UseVisualStyleBackColor = true;
    363366      this.cloneAlgorithmButton.Click += new System.EventHandler(this.cloneAlgorithmButton_Click);
     367      //
     368      // storeRunsAutomaticallyCheckBox
     369      //
     370      this.storeRunsAutomaticallyCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     371      this.storeRunsAutomaticallyCheckBox.AutoSize = true;
     372      this.storeRunsAutomaticallyCheckBox.CheckAlign = System.Drawing.ContentAlignment.MiddleRight;
     373      this.storeRunsAutomaticallyCheckBox.Checked = true;
     374      this.storeRunsAutomaticallyCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
     375      this.storeRunsAutomaticallyCheckBox.Location = new System.Drawing.Point(318, 6);
     376      this.storeRunsAutomaticallyCheckBox.Name = "storeRunsAutomaticallyCheckBox";
     377      this.storeRunsAutomaticallyCheckBox.Size = new System.Drawing.Size(147, 17);
     378      this.storeRunsAutomaticallyCheckBox.TabIndex = 1;
     379      this.storeRunsAutomaticallyCheckBox.Text = "Store Runs &Automatically:";
     380      this.toolTip.SetToolTip(this.storeRunsAutomaticallyCheckBox, "Store finished runs automatically in the OKB.");
     381      this.storeRunsAutomaticallyCheckBox.UseVisualStyleBackColor = true;
     382      this.storeRunsAutomaticallyCheckBox.CheckedChanged += new System.EventHandler(this.storeRunsAutomaticallyCheckBox_CheckedChanged);
    364383      //
    365384      // OKBAlgorithmView
     
    431450    private System.Windows.Forms.Button refreshButton;
    432451    private System.Windows.Forms.Button cloneAlgorithmButton;
     452    private System.Windows.Forms.CheckBox storeRunsAutomaticallyCheckBox;
    433453  }
    434454}
  • branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/RunCreation/Views/OKBAlgorithmView.cs

    r5667 r5902  
    8181      Content.Stopped -= new EventHandler(Content_Stopped);
    8282      Content.ProblemChanged -= new EventHandler(Content_ProblemChanged);
     83      Content.StoreRunsAutomaticallyChanged -= new EventHandler(Content_StoreRunsAutomaticallyChanged);
    8384      Content.StoreAlgorithmInEachRunChanged -= new EventHandler(Content_StoreAlgorithmInEachRunChanged);
    8485      base.DeregisterContentEvents();
     
    9596      Content.Stopped += new EventHandler(Content_Stopped);
    9697      Content.ProblemChanged += new EventHandler(Content_ProblemChanged);
     98      Content.StoreRunsAutomaticallyChanged += new EventHandler(Content_StoreRunsAutomaticallyChanged);
    9799      Content.StoreAlgorithmInEachRunChanged += new EventHandler(Content_StoreAlgorithmInEachRunChanged);
    98100    }
     
    106108        resultsView.Content = null;
    107109        runsView.Content = null;
     110        storeRunsAutomaticallyCheckBox.Checked = true;
    108111        storeAlgorithmInEachRunCheckBox.Checked = true;
    109112        executionTimeTextBox.Text = "-";
     
    116119        resultsView.Content = Content.Results.AsReadOnly();
    117120        runsView.Content = Content.Runs;
     121        storeRunsAutomaticallyCheckBox.Checked = Content.StoreRunsAutomatically;
    118122        storeAlgorithmInEachRunCheckBox.Checked = Content.StoreAlgorithmInEachRun;
    119123        executionTimeTextBox.Text = Content.ExecutionTime.ToString();
     
    132136      resultsView.Enabled = Content != null;
    133137      runsView.Enabled = Content != null;
     138      storeRunsAutomaticallyCheckBox.Enabled = Content != null && !ReadOnly;
    134139      storeAlgorithmInEachRunCheckBox.Enabled = Content != null && !ReadOnly;
    135140      executionTimeTextBox.Enabled = Content != null;
     
    196201      else
    197202        executionTimeTextBox.Text = Content == null ? "-" : Content.ExecutionTime.ToString();
     203    }
     204    private void Content_StoreRunsAutomaticallyChanged(object sender, EventArgs e) {
     205      if (InvokeRequired)
     206        Invoke(new EventHandler(Content_StoreRunsAutomaticallyChanged), sender, e);
     207      else
     208        storeRunsAutomaticallyCheckBox.Checked = Content.StoreRunsAutomatically;
    198209    }
    199210    private void Content_StoreAlgorithmInEachRunChanged(object sender, EventArgs e) {
     
    306317      }
    307318    }
     319    private void storeRunsAutomaticallyCheckBox_CheckedChanged(object sender, EventArgs e) {
     320      if (Content != null) Content.StoreRunsAutomatically = storeRunsAutomaticallyCheckBox.Checked;
     321    }
    308322    private void storeAlgorithmInEachRunCheckBox_CheckedChanged(object sender, EventArgs e) {
    309323      if (Content != null) Content.StoreAlgorithmInEachRun = storeAlgorithmInEachRunCheckBox.Checked;
  • branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/RunCreation/Views/OKBProblemView.Designer.cs

    r5900 r5902  
    118118      // parameterCollectionView
    119119      //
     120      this.parameterCollectionView.AllowEditingOfHiddenParameters = false;
    120121      this.parameterCollectionView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    121122                  | System.Windows.Forms.AnchorStyles.Left)
Note: See TracChangeset for help on using the changeset viewer.