- Timestamp:
- 07/16/17 13:08:06 (7 years ago)
- Location:
- stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 14901,15121
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
r14186 r15262 167 167 pauseButton.Enabled = !Locked; 168 168 stopButton.Enabled = !Locked; 169 resetButton.Enabled = !Locked;170 169 } 171 170 … … 188 187 this.jobsTreeView.ReadOnly = !Content.IsControllable || Content.ExecutionState != ExecutionState.Prepared || alreadyUploaded || Content.IsProgressing; 189 188 190 this.refreshAutomaticallyCheckBox.Enabled = Content.IsControllable && alreadyUploaded && jobsLoaded && Content.ExecutionState == ExecutionState.Started&& !Content.IsProgressing;189 this.refreshAutomaticallyCheckBox.Enabled = Content.IsControllable && alreadyUploaded && jobsLoaded && (Content.ExecutionState == ExecutionState.Started || Content.ExecutionState == ExecutionState.Paused) && !Content.IsProgressing; 191 190 this.refreshButton.Enabled = Content.IsDownloadable && alreadyUploaded && !Content.IsProgressing; 192 191 … … 380 379 }, TaskContinuationOptions.OnlyOnFaulted); 381 380 } 382 private void resetButton_Click(object sender, EventArgs e) { }383 381 384 382 private void PauseJobAsync(object job) { … … 438 436 private void SetEnabledStateOfExecutableButtons() { 439 437 if (Content == null) { 440 startButton.Enabled = pauseButton.Enabled = stopButton.Enabled = resetButton.Enabled =false;438 startButton.Enabled = pauseButton.Enabled = stopButton.Enabled = false; 441 439 } else { 442 440 startButton.Enabled = Content.IsControllable && Content.HiveTasks != null && Content.HiveTasks.Count > 0 && (Content.ExecutionState == ExecutionState.Prepared || Content.ExecutionState == ExecutionState.Paused) && !Content.IsProgressing; 443 441 pauseButton.Enabled = Content.IsControllable && Content.ExecutionState == ExecutionState.Started && !Content.IsProgressing; 444 stopButton.Enabled = Content.IsControllable && Content.ExecutionState == ExecutionState.Started && !Content.IsProgressing; 445 resetButton.Enabled = false; 442 stopButton.Enabled = Content.IsControllable && (Content.ExecutionState == ExecutionState.Started || Content.ExecutionState == ExecutionState.Paused) && !Content.IsProgressing; 446 443 } 447 444 }
Note: See TracChangeset
for help on using the changeset viewer.