Changeset 3275 for trunk/sources/HeuristicLab.Optimization.Views/3.3
- Timestamp:
- 04/06/10 03:37:29 (14 years ago)
- 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 64 64 this.saveFileDialog = new System.Windows.Forms.SaveFileDialog(); 65 65 this.stopButton = new System.Windows.Forms.Button(); 66 this.runsTabPage = new System.Windows.Forms.TabPage(); 67 this.runsView = new HeuristicLab.Optimization.Views.RunCollectionView(); 66 68 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 67 69 this.tabControl.SuspendLayout(); … … 69 71 this.problemTabPage.SuspendLayout(); 70 72 this.resultsTabPage.SuspendLayout(); 73 this.runsTabPage.SuspendLayout(); 71 74 this.SuspendLayout(); 72 75 // … … 89 92 this.tabControl.Controls.Add(this.problemTabPage); 90 93 this.tabControl.Controls.Add(this.resultsTabPage); 94 this.tabControl.Controls.Add(this.runsTabPage); 91 95 this.tabControl.Location = new System.Drawing.Point(0, 52); 92 96 this.tabControl.Name = "tabControl"; … … 281 285 this.stopButton.UseVisualStyleBackColor = true; 282 286 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; 283 310 // 284 311 // AlgorithmView … … 311 338 this.problemTabPage.ResumeLayout(false); 312 339 this.resultsTabPage.ResumeLayout(false); 340 this.runsTabPage.ResumeLayout(false); 313 341 this.ResumeLayout(false); 314 342 this.PerformLayout(); … … 336 364 protected HeuristicLab.Optimization.Views.ResultCollectionView resultsView; 337 365 protected System.Windows.Forms.Button stopButton; 366 protected System.Windows.Forms.TabPage runsTabPage; 367 protected RunCollectionView runsView; 338 368 339 369 } -
trunk/sources/HeuristicLab.Optimization.Views/3.3/AlgorithmView.cs
r3274 r3275 96 96 problemViewHost.Content = null; 97 97 resultsView.Content = null; 98 runsView.Content = null; 98 99 tabControl.Enabled = false; 99 100 startButton.Enabled = pauseButton.Enabled = stopButton.Enabled = resetButton.Enabled = false; … … 106 107 problemViewHost.Content = Content.Problem; 107 108 resultsView.Content = Content.Results.AsReadOnly(); 109 runsView.Content = Content.Runs; 108 110 tabControl.Enabled = true; 109 111 EnableDisableButtons(); … … 144 146 newProblemButton.Enabled = openProblemButton.Enabled = saveProblemButton.Enabled = Content.ExecutionState != ExecutionState.Started; 145 147 problemViewHost.Enabled = Content.ExecutionState != ExecutionState.Started; 146 resultsView.Enabled = Content.ExecutionState != ExecutionState.Started;147 148 EnableDisableButtons(); 148 149 } … … 237 238 } 238 239 protected virtual void resetButton_Click(object sender, EventArgs e) { 239 if (Content.R esults.Count > 0) {240 if (MessageBox.Show(this, "Clear all r esults 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) 241 242 Content.Prepare(true); 242 243 else -
trunk/sources/HeuristicLab.Optimization.Views/3.3/ExperimentView.Designer.cs
r3274 r3275 47 47 this.tabControl = new System.Windows.Forms.TabControl(); 48 48 this.optimizersTabPage = new System.Windows.Forms.TabPage(); 49 this.optimizerListView = new HeuristicLab.Optimization.Views.OptimizerListView(); 49 50 this.startButton = new System.Windows.Forms.Button(); 50 51 this.stopButton = new System.Windows.Forms.Button(); … … 53 54 this.executionTimeTextBox = new System.Windows.Forms.TextBox(); 54 55 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(); 56 58 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 57 59 this.tabControl.SuspendLayout(); 58 60 this.optimizersTabPage.SuspendLayout(); 61 this.runsTabPage.SuspendLayout(); 59 62 this.SuspendLayout(); 60 63 // … … 75 78 | System.Windows.Forms.AnchorStyles.Right))); 76 79 this.tabControl.Controls.Add(this.optimizersTabPage); 80 this.tabControl.Controls.Add(this.runsTabPage); 77 81 this.tabControl.Location = new System.Drawing.Point(0, 52); 78 82 this.tabControl.Name = "tabControl"; … … 91 95 this.optimizersTabPage.Text = "Optimizers"; 92 96 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; 93 109 // 94 110 // startButton … … 159 175 this.pauseButton.Click += new System.EventHandler(this.pauseButton_Click); 160 176 // 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) 164 191 | System.Windows.Forms.AnchorStyles.Left) 165 192 | 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; 172 199 // 173 200 // ExperimentView … … 198 225 this.tabControl.ResumeLayout(false); 199 226 this.optimizersTabPage.ResumeLayout(false); 227 this.runsTabPage.ResumeLayout(false); 200 228 this.ResumeLayout(false); 201 229 this.PerformLayout(); … … 213 241 private System.Windows.Forms.Button pauseButton; 214 242 private OptimizerListView optimizerListView; 243 private System.Windows.Forms.TabPage runsTabPage; 244 private RunCollectionView runsView; 215 245 216 246 } -
trunk/sources/HeuristicLab.Optimization.Views/3.3/ExperimentView.cs
r3274 r3275 71 71 if (Content == null) { 72 72 optimizerListView.Content = null; 73 runsView.Content = null; 73 74 tabControl.Enabled = false; 74 75 startButton.Enabled = pauseButton.Enabled = stopButton.Enabled = resetButton.Enabled = false; … … 77 78 } else { 78 79 optimizerListView.Content = Content.Optimizers; 80 runsView.Content = Content.Runs; 79 81 tabControl.Enabled = true; 80 82 EnableDisableButtons(); … … 125 127 } 126 128 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 } 131 137 } 132 138 #endregion -
trunk/sources/HeuristicLab.Optimization.Views/3.3/UserDefinedAlgorithmView.Designer.cs
r3262 r3275 76 76 this.tabControl.Controls.SetChildIndex(this.globalScopeTabPage, 0); 77 77 this.tabControl.Controls.SetChildIndex(this.operatorGraphTabPage, 0); 78 this.tabControl.Controls.SetChildIndex(this.runsTabPage, 0); 78 79 this.tabControl.Controls.SetChildIndex(this.resultsTabPage, 0); 79 80 this.tabControl.Controls.SetChildIndex(this.engineTabPage, 0);
Note: See TracChangeset
for help on using the changeset viewer.