- Timestamp:
- 05/02/17 09:41:39 (8 years ago)
- Location:
- trunk/sources/HeuristicLab.Clients.Hive.Views/3.3/HiveTasks
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive.Views/3.3/HiveTasks/OptimizerHiveTaskView.cs
r14185 r14901 73 73 74 74 #region Child Control Events 75 private void restartButton_Click(object sender, EventArgs e) {75 private void startButton_Click(object sender, EventArgs e) { 76 76 var task = System.Threading.Tasks.Task.Factory.StartNew(ResumeTaskAsync); 77 77 task.ContinueWith((t) => { … … 119 119 base.SetEnabledStateOfControls(); 120 120 121 this. restartButton.Enabled = Content != null && Content.IsControllable && !Content.Task.Command.HasValue && (Content.Task.State == TaskState.Paused || Content.Task.State == TaskState.Failed || Content.Task.State == TaskState.Aborted);121 this.startButton.Enabled = Content != null && Content.IsControllable && !Content.Task.Command.HasValue && (Content.Task.State == TaskState.Paused || Content.Task.State == TaskState.Failed || Content.Task.State == TaskState.Aborted); 122 122 this.pauseButton.Enabled = Content != null && Content.IsControllable && !Content.Task.Command.HasValue && Content.Task.State == TaskState.Calculating; 123 123 this.stopButton.Enabled = Content != null && Content.IsControllable && !Content.Task.Command.HasValue && (Content.Task.State == TaskState.Calculating || Content.Task.State == TaskState.Waiting || Content.Task.State == TaskState.Paused); -
trunk/sources/HeuristicLab.Clients.Hive.Views/3.3/HiveTasks/OptimizerHiveTaskView.designer.cs
r14185 r14901 45 45 /// </summary> 46 46 private void InitializeComponent() { 47 this. restartButton = new System.Windows.Forms.Button();47 this.startButton = new System.Windows.Forms.Button(); 48 48 this.pauseButton = new System.Windows.Forms.Button(); 49 49 this.stopButton = new System.Windows.Forms.Button(); … … 60 60 // detailsTabPage 61 61 // 62 this.detailsTabPage.Controls.Add(this. restartButton);62 this.detailsTabPage.Controls.Add(this.startButton); 63 63 this.detailsTabPage.Controls.Add(this.pauseButton); 64 64 this.detailsTabPage.Controls.Add(this.stopButton); … … 66 66 this.detailsTabPage.Controls.SetChildIndex(this.stopButton, 0); 67 67 this.detailsTabPage.Controls.SetChildIndex(this.pauseButton, 0); 68 this.detailsTabPage.Controls.SetChildIndex(this. restartButton, 0);68 this.detailsTabPage.Controls.SetChildIndex(this.startButton, 0); 69 69 // 70 70 // tabControl … … 79 79 this.modifyItemButton.Text = "Show/Modify Optimizer"; 80 80 // 81 // restartButton81 // startButton 82 82 // 83 this. restartButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));84 this. restartButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Restart;85 this. restartButton.Location = new System.Drawing.Point(3, 348);86 this. restartButton.Name = "restartButton";87 this. restartButton.Size = new System.Drawing.Size(24, 24);88 this. restartButton.TabIndex = 34;89 this. restartButton.UseVisualStyleBackColor = true;90 this. restartButton.Click += new System.EventHandler(this.restartButton_Click);83 this.startButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 84 this.startButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.Play; 85 this.startButton.Location = new System.Drawing.Point(3, 348); 86 this.startButton.Name = "startButton"; 87 this.startButton.Size = new System.Drawing.Size(24, 24); 88 this.startButton.TabIndex = 34; 89 this.startButton.UseVisualStyleBackColor = true; 90 this.startButton.Click += new System.EventHandler(this.startButton_Click); 91 91 // 92 92 // pauseButton … … 139 139 // OptimizerHiveTaskView 140 140 // 141 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);142 141 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 143 142 this.Name = "OptimizerHiveTaskView"; … … 156 155 #endregion 157 156 158 private System.Windows.Forms.Button restartButton;157 private System.Windows.Forms.Button startButton; 159 158 private System.Windows.Forms.Button pauseButton; 160 159 private System.Windows.Forms.Button stopButton;
Note: See TracChangeset
for help on using the changeset viewer.