Changeset 3716 for trunk/sources/HeuristicLab.Optimization.Views
- Timestamp:
- 05/08/10 04:28:19 (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.cs
r3694 r3716 217 217 } 218 218 protected virtual void resetButton_Click(object sender, EventArgs e) { 219 if (Content.Runs.Count > 0) { 220 if (MessageBox.Show(this, "Clear all runs executed so far?", "Clear All Runs?", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes) 221 Content.Prepare(true); 222 else 223 Content.Prepare(false); 224 } else { 225 Content.Prepare(); 226 } 219 Content.Prepare(false); 227 220 } 228 221 protected virtual void problemPanel_DragEnterOver(object sender, DragEventArgs e) { -
trunk/sources/HeuristicLab.Optimization.Views/3.3/BatchRunView.cs
r3709 r3716 198 198 } 199 199 private void resetButton_Click(object sender, EventArgs e) { 200 if (Content.Runs.Count > 0) { 201 if (MessageBox.Show(this, "Clear all runs executed so far?", "Clear All Runs?", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes) 202 Content.Prepare(true); 203 else 204 Content.Prepare(false); 205 } else { 206 Content.Prepare(); 207 } 200 Content.Prepare(false); 208 201 } 209 202 private void algorithmPanel_DragEnterOver(object sender, DragEventArgs e) { -
trunk/sources/HeuristicLab.Optimization.Views/3.3/ExperimentView.cs
r3566 r3716 125 125 } 126 126 private void resetButton_Click(object sender, EventArgs e) { 127 if (Content.Runs.Count > 0) { 128 if (MessageBox.Show(this, "Clear all runs executed so far?", "Clear All Runs?", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.Yes) 129 Content.Prepare(true); 130 else 131 Content.Prepare(false); 132 } else { 133 Content.Prepare(); 134 } 127 Content.Prepare(false); 135 128 } 136 129 #endregion -
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionView.Designer.cs
r3614 r3716 54 54 private void InitializeComponent() { 55 55 this.components = new System.ComponentModel.Container(); 56 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(RunCollectionView));57 56 this.splitContainer = new System.Windows.Forms.SplitContainer(); 58 57 this.toolStrip = new System.Windows.Forms.ToolStrip(); … … 70 69 this.constraintPage = new System.Windows.Forms.TabPage(); 71 70 this.runCollectionConstraintCollectionView = new HeuristicLab.Core.Views.RunCollectionConstraintCollectionView(); 71 this.clearButton = new System.Windows.Forms.Button(); 72 72 this.splitContainer.Panel1.SuspendLayout(); 73 73 this.splitContainer.Panel2.SuspendLayout(); … … 90 90 // splitContainer.Panel1 91 91 // 92 this.splitContainer.Panel1.Controls.Add(this.clearButton); 92 93 this.splitContainer.Panel1.Controls.Add(this.toolStrip); 93 94 this.splitContainer.Panel1.Controls.Add(this.itemsListView); … … 113 114 this.toolStrip.Location = new System.Drawing.Point(30, 3); 114 115 this.toolStrip.Name = "toolStrip"; 115 this.toolStrip.Size = new System.Drawing.Size( 217, 24);116 this.toolStrip.Size = new System.Drawing.Size(166, 24); 116 117 this.toolStrip.TabIndex = 1; 117 118 this.toolStrip.Text = "toolStrip1"; … … 141 142 this.itemsListView.Size = new System.Drawing.Size(244, 295); 142 143 this.itemsListView.SmallImageList = this.imageList; 143 this.itemsListView.TabIndex = 1;144 this.itemsListView.TabIndex = 3; 144 145 this.itemsListView.UseCompatibleStateImageBehavior = false; 145 146 this.itemsListView.View = System.Windows.Forms.View.Details; … … 218 219 this.tabControl.SelectedIndex = 0; 219 220 this.tabControl.Size = new System.Drawing.Size(532, 383); 220 this.tabControl.TabIndex = 1;221 this.tabControl.TabIndex = 0; 221 222 // 222 223 // runPage … … 252 253 this.runCollectionConstraintCollectionView.Size = new System.Drawing.Size(518, 351); 253 254 this.runCollectionConstraintCollectionView.TabIndex = 0; 255 // 256 // clearButton 257 // 258 this.clearButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 259 this.clearButton.Enabled = false; 260 this.clearButton.Location = new System.Drawing.Point(199, 3); 261 this.clearButton.Name = "clearButton"; 262 this.clearButton.Size = new System.Drawing.Size(48, 24); 263 this.clearButton.TabIndex = 2; 264 this.clearButton.Text = "&Clear"; 265 this.toolTip.SetToolTip(this.clearButton, "Remove All Runs"); 266 this.clearButton.UseVisualStyleBackColor = true; 267 this.clearButton.Click += new System.EventHandler(this.clearButton_Click); 254 268 // 255 269 // RunCollectionView … … 286 300 protected ToolStrip toolStrip; 287 301 protected ToolStripDropDownButton analyzeRunsToolStripDropDownButton; 288 private TabControl tabControl; 289 private TabPage runPage; 290 private TabPage constraintPage; 291 private HeuristicLab.Core.Views.RunCollectionConstraintCollectionView runCollectionConstraintCollectionView; 302 protected TabControl tabControl; 303 protected TabPage runPage; 304 protected TabPage constraintPage; 305 protected HeuristicLab.Core.Views.RunCollectionConstraintCollectionView runCollectionConstraintCollectionView; 306 protected Button clearButton; 292 307 } 293 308 } -
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionView.cs
r3709 r3716 131 131 viewHost.Enabled = false; 132 132 removeButton.Enabled = false; 133 clearButton.Enabled = false; 133 134 } else { 134 135 analyzeRunsToolStripDropDownButton.Enabled = itemsListView.Items.Count > 0; … … 137 138 detailsGroupBox.Enabled = true; 138 139 removeButton.Enabled = itemsListView.SelectedItems.Count > 0 && !Content.IsReadOnly && !ReadOnly; 140 clearButton.Enabled = itemsListView.Items.Count > 0 && !Content.IsReadOnly && !ReadOnly; 139 141 viewHost.Enabled = true; 140 142 } … … 268 270 } 269 271 } 272 protected virtual void clearButton_Click(object sender, EventArgs e) { 273 Content.Clear(); 274 } 270 275 #endregion 271 276 … … 279 284 AddListViewItem(CreateListViewItem(item)); 280 285 analyzeRunsToolStripDropDownButton.Enabled = itemsListView.Items.Count > 0; 286 clearButton.Enabled = itemsListView.Items.Count > 0 && !Content.IsReadOnly && !ReadOnly; 281 287 runCollectionConstraintCollectionView.ReadOnly = itemsListView.Items.Count == 0; 282 288 } … … 294 300 } 295 301 analyzeRunsToolStripDropDownButton.Enabled = itemsListView.Items.Count > 0; 302 clearButton.Enabled = itemsListView.Items.Count > 0 && !Content.IsReadOnly && !ReadOnly; 296 303 runCollectionConstraintCollectionView.ReadOnly = itemsListView.Items.Count == 0; 297 304 } … … 312 319 AddListViewItem(CreateListViewItem(item)); 313 320 analyzeRunsToolStripDropDownButton.Enabled = itemsListView.Items.Count > 0; 321 clearButton.Enabled = itemsListView.Items.Count > 0 && !Content.IsReadOnly && !ReadOnly; 314 322 runCollectionConstraintCollectionView.ReadOnly = itemsListView.Items.Count == 0; 315 323 } … … 357 365 } 358 366 #endregion 367 359 368 } 360 369 }
Note: See TracChangeset
for help on using the changeset viewer.