Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Optimizer/3.3/CreateExperimentDialog.Designer.cs @ 7846

Last change on this file since 7846 was 7846, checked in by abeham, 12 years ago

#1851:

  • Moved common methods from problem instance management into a ProblemInstanceManager
  • Made experiment creation asynchronous by using a BackgroundWorker
  • Added a progress bar to display the progress as well as the instance that is currently processed
  • Added "select all" and "select none" options which are updated to the state of the listview
File size: 14.3 KB
RevLine 
[4104]1#region License Information
2/* HeuristicLab
[7259]3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
[4104]4 *
5 * This file is part of HeuristicLab.
6 *
7 * HeuristicLab is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * HeuristicLab is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
19 */
20#endregion
21
[4650]22namespace HeuristicLab.Optimizer {
[4104]23  partial class CreateExperimentDialog {
24    /// <summary>
25    /// Required designer variable.
26    /// </summary>
27    private System.ComponentModel.IContainer components = null;
28
29    /// <summary>
30    /// Clean up any resources being used.
31    /// </summary>
32    /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
33    protected override void Dispose(bool disposing) {
34      if (disposing && (components != null)) {
35        components.Dispose();
36      }
37      base.Dispose(disposing);
38    }
39
40    #region Windows Form Designer generated code
41
42    /// <summary>
43    /// Required method for Designer support - do not modify
44    /// the contents of this method with the code editor.
45    /// </summary>
46    private void InitializeComponent() {
47      this.components = new System.ComponentModel.Container();
48      this.okButton = new System.Windows.Forms.Button();
49      this.cancelButton = new System.Windows.Forms.Button();
50      this.createBatchRunCheckBox = new System.Windows.Forms.CheckBox();
51      this.createBatchRunLabel = new System.Windows.Forms.Label();
52      this.repetitionsLabel = new System.Windows.Forms.Label();
53      this.repetitionsNumericUpDown = new System.Windows.Forms.NumericUpDown();
54      this.toolTip = new System.Windows.Forms.ToolTip(this.components);
[7841]55      this.instancesLabel = new System.Windows.Forms.Label();
56      this.instancesListView = new System.Windows.Forms.ListView();
57      this.columnHeader = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
[7846]58      this.experimentCreationBackgroundWorker = new System.ComponentModel.BackgroundWorker();
59      this.experimentCreationProgressBar = new System.Windows.Forms.ProgressBar();
60      this.progressLabel = new System.Windows.Forms.Label();
61      this.selectAllCheckBox = new System.Windows.Forms.CheckBox();
62      this.selectNoneCheckBox = new System.Windows.Forms.CheckBox();
[4104]63      ((System.ComponentModel.ISupportInitialize)(this.repetitionsNumericUpDown)).BeginInit();
64      this.SuspendLayout();
65      //
66      // okButton
67      //
68      this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
69      this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
70      this.okButton.Enabled = false;
[7841]71      this.okButton.Location = new System.Drawing.Point(113, 259);
[4104]72      this.okButton.Name = "okButton";
73      this.okButton.Size = new System.Drawing.Size(75, 23);
74      this.okButton.TabIndex = 4;
75      this.okButton.Text = "&OK";
76      this.okButton.UseVisualStyleBackColor = true;
77      this.okButton.Click += new System.EventHandler(this.okButton_Click);
78      //
79      // cancelButton
80      //
81      this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
82      this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
[7841]83      this.cancelButton.Location = new System.Drawing.Point(194, 259);
[4104]84      this.cancelButton.Name = "cancelButton";
85      this.cancelButton.Size = new System.Drawing.Size(75, 23);
86      this.cancelButton.TabIndex = 5;
87      this.cancelButton.Text = "&Cancel";
88      this.cancelButton.UseVisualStyleBackColor = true;
89      //
90      // createBatchRunCheckBox
91      //
92      this.createBatchRunCheckBox.AutoSize = true;
93      this.createBatchRunCheckBox.Checked = true;
94      this.createBatchRunCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
95      this.createBatchRunCheckBox.Location = new System.Drawing.Point(113, 8);
96      this.createBatchRunCheckBox.Name = "createBatchRunCheckBox";
97      this.createBatchRunCheckBox.Size = new System.Drawing.Size(15, 14);
98      this.createBatchRunCheckBox.TabIndex = 1;
[5300]99      this.toolTip.SetToolTip(this.createBatchRunCheckBox, "Check to create a batch run for executing an optimizer multiple times.");
[4104]100      this.createBatchRunCheckBox.UseVisualStyleBackColor = true;
101      this.createBatchRunCheckBox.CheckedChanged += new System.EventHandler(this.createBatchRunCheckBox_CheckedChanged);
102      //
103      // createBatchRunLabel
104      //
105      this.createBatchRunLabel.AutoSize = true;
106      this.createBatchRunLabel.Location = new System.Drawing.Point(12, 9);
107      this.createBatchRunLabel.Name = "createBatchRunLabel";
108      this.createBatchRunLabel.Size = new System.Drawing.Size(95, 13);
109      this.createBatchRunLabel.TabIndex = 0;
110      this.createBatchRunLabel.Text = "&Create Batch Run:";
111      //
112      // repetitionsLabel
113      //
114      this.repetitionsLabel.AutoSize = true;
[7841]115      this.repetitionsLabel.Location = new System.Drawing.Point(12, 31);
[4104]116      this.repetitionsLabel.Name = "repetitionsLabel";
117      this.repetitionsLabel.Size = new System.Drawing.Size(63, 13);
118      this.repetitionsLabel.TabIndex = 2;
119      this.repetitionsLabel.Text = "&Repetitions:";
120      //
121      // repetitionsNumericUpDown
122      //
[7841]123      this.repetitionsNumericUpDown.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
124            | System.Windows.Forms.AnchorStyles.Right)));
[4104]125      this.repetitionsNumericUpDown.Location = new System.Drawing.Point(113, 28);
126      this.repetitionsNumericUpDown.Maximum = new decimal(new int[] {
127            1000000,
128            0,
129            0,
130            0});
131      this.repetitionsNumericUpDown.Minimum = new decimal(new int[] {
132            1,
133            0,
134            0,
135            0});
136      this.repetitionsNumericUpDown.Name = "repetitionsNumericUpDown";
137      this.repetitionsNumericUpDown.Size = new System.Drawing.Size(156, 20);
138      this.repetitionsNumericUpDown.TabIndex = 3;
139      this.repetitionsNumericUpDown.ThousandsSeparator = true;
140      this.toolTip.SetToolTip(this.repetitionsNumericUpDown, "Number of repetitions executed by the batch run.");
141      this.repetitionsNumericUpDown.Value = new decimal(new int[] {
142            10,
143            0,
144            0,
145            0});
146      this.repetitionsNumericUpDown.Validated += new System.EventHandler(this.repetitionsNumericUpDown_Validated);
147      //
[7841]148      // instancesLabel
149      //
150      this.instancesLabel.AutoSize = true;
151      this.instancesLabel.Location = new System.Drawing.Point(12, 54);
152      this.instancesLabel.Name = "instancesLabel";
153      this.instancesLabel.Size = new System.Drawing.Size(56, 13);
154      this.instancesLabel.TabIndex = 2;
155      this.instancesLabel.Text = "&Instances:";
156      //
157      // instancesListView
158      //
159      this.instancesListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
160            | System.Windows.Forms.AnchorStyles.Left)
161            | System.Windows.Forms.AnchorStyles.Right)));
162      this.instancesListView.CheckBoxes = true;
163      this.instancesListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
164            this.columnHeader});
165      this.instancesListView.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
[7846]166      this.instancesListView.Location = new System.Drawing.Point(113, 77);
[7841]167      this.instancesListView.Name = "instancesListView";
[7846]168      this.instancesListView.Size = new System.Drawing.Size(156, 176);
[7841]169      this.instancesListView.TabIndex = 6;
170      this.instancesListView.UseCompatibleStateImageBehavior = false;
171      this.instancesListView.View = System.Windows.Forms.View.Details;
[7846]172      this.instancesListView.ItemChecked += new System.Windows.Forms.ItemCheckedEventHandler(this.instancesListView_ItemChecked);
[7841]173      //
174      // columnHeader
175      //
176      this.columnHeader.Width = 150;
177      //
[7846]178      // experimentCreationBackgroundWorker
179      //
180      this.experimentCreationBackgroundWorker.WorkerReportsProgress = true;
181      this.experimentCreationBackgroundWorker.WorkerSupportsCancellation = true;
182      this.experimentCreationBackgroundWorker.DoWork += new System.ComponentModel.DoWorkEventHandler(this.experimentCreationBackgroundWorker_DoWork);
183      this.experimentCreationBackgroundWorker.ProgressChanged += new System.ComponentModel.ProgressChangedEventHandler(this.experimentCreationBackgroundWorker_ProgressChanged);
184      this.experimentCreationBackgroundWorker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.experimentCreationBackgroundWorker_RunWorkerCompleted);
185      //
186      // experimentCreationProgressBar
187      //
188      this.experimentCreationProgressBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
189            | System.Windows.Forms.AnchorStyles.Right)));
190      this.experimentCreationProgressBar.Location = new System.Drawing.Point(15, 259);
191      this.experimentCreationProgressBar.Name = "experimentCreationProgressBar";
192      this.experimentCreationProgressBar.Size = new System.Drawing.Size(92, 23);
193      this.experimentCreationProgressBar.Style = System.Windows.Forms.ProgressBarStyle.Continuous;
194      this.experimentCreationProgressBar.TabIndex = 7;
195      this.experimentCreationProgressBar.Visible = false;
196      //
197      // progressLabel
198      //
199      this.progressLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
200      this.progressLabel.BackColor = System.Drawing.SystemColors.Control;
201      this.progressLabel.Location = new System.Drawing.Point(113, 259);
202      this.progressLabel.Name = "progressLabel";
203      this.progressLabel.Size = new System.Drawing.Size(75, 23);
204      this.progressLabel.TabIndex = 8;
205      this.progressLabel.Text = "label1";
206      this.progressLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
207      this.progressLabel.Visible = false;
208      //
209      // selectAllCheckBox
210      //
211      this.selectAllCheckBox.AutoSize = true;
212      this.selectAllCheckBox.Location = new System.Drawing.Point(113, 54);
213      this.selectAllCheckBox.Name = "selectAllCheckBox";
214      this.selectAllCheckBox.Size = new System.Drawing.Size(67, 17);
215      this.selectAllCheckBox.TabIndex = 9;
216      this.selectAllCheckBox.Text = "select all";
217      this.selectAllCheckBox.UseVisualStyleBackColor = true;
218      this.selectAllCheckBox.CheckedChanged += new System.EventHandler(this.selectAllCheckBox_CheckedChanged);
219      //
220      // selectNoneCheckBox
221      //
222      this.selectNoneCheckBox.AutoSize = true;
223      this.selectNoneCheckBox.Location = new System.Drawing.Point(186, 54);
224      this.selectNoneCheckBox.Name = "selectNoneCheckBox";
225      this.selectNoneCheckBox.Size = new System.Drawing.Size(81, 17);
226      this.selectNoneCheckBox.TabIndex = 9;
227      this.selectNoneCheckBox.Text = "select none";
228      this.selectNoneCheckBox.UseVisualStyleBackColor = true;
229      this.selectNoneCheckBox.CheckedChanged += new System.EventHandler(this.selectNoneCheckBox_CheckedChanged);
230      //
[4104]231      // CreateExperimentDialog
232      //
233      this.AcceptButton = this.okButton;
234      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
235      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
236      this.CancelButton = this.cancelButton;
[7841]237      this.ClientSize = new System.Drawing.Size(281, 294);
[7846]238      this.Controls.Add(this.selectNoneCheckBox);
239      this.Controls.Add(this.selectAllCheckBox);
[7841]240      this.Controls.Add(this.instancesListView);
[4104]241      this.Controls.Add(this.repetitionsNumericUpDown);
[7841]242      this.Controls.Add(this.instancesLabel);
[4104]243      this.Controls.Add(this.repetitionsLabel);
244      this.Controls.Add(this.createBatchRunLabel);
245      this.Controls.Add(this.createBatchRunCheckBox);
246      this.Controls.Add(this.cancelButton);
247      this.Controls.Add(this.okButton);
[7846]248      this.Controls.Add(this.progressLabel);
249      this.Controls.Add(this.experimentCreationProgressBar);
[4104]250      this.MaximizeBox = false;
251      this.MinimizeBox = false;
252      this.Name = "CreateExperimentDialog";
253      this.ShowIcon = false;
254      this.ShowInTaskbar = false;
255      this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
256      this.Text = "Create Experiment";
[7846]257      this.TopMost = true;
258      this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.CreateExperimentDialog_FormClosing);
[4104]259      ((System.ComponentModel.ISupportInitialize)(this.repetitionsNumericUpDown)).EndInit();
260      this.ResumeLayout(false);
261      this.PerformLayout();
262
263    }
264
265    #endregion
266
267    private System.Windows.Forms.Button okButton;
268    private System.Windows.Forms.Button cancelButton;
269    private System.Windows.Forms.CheckBox createBatchRunCheckBox;
270    private System.Windows.Forms.Label createBatchRunLabel;
271    private System.Windows.Forms.Label repetitionsLabel;
272    private System.Windows.Forms.NumericUpDown repetitionsNumericUpDown;
273    private System.Windows.Forms.ToolTip toolTip;
[7841]274    private System.Windows.Forms.Label instancesLabel;
275    private System.Windows.Forms.ListView instancesListView;
276    private System.Windows.Forms.ColumnHeader columnHeader;
[7846]277    private System.ComponentModel.BackgroundWorker experimentCreationBackgroundWorker;
278    private System.Windows.Forms.ProgressBar experimentCreationProgressBar;
279    private System.Windows.Forms.Label progressLabel;
280    private System.Windows.Forms.CheckBox selectAllCheckBox;
281    private System.Windows.Forms.CheckBox selectNoneCheckBox;
[4104]282
283  }
284}
Note: See TracBrowser for help on using the repository browser.