- Timestamp:
- 08/21/13 23:08:47 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive.Views/3.3/HiveTasks/OptimizerHiveTaskView.cs
r9456 r9893 45 45 public OptimizerHiveTaskView() { 46 46 InitializeComponent(); 47 progress = new Progress() { 48 CanBeCanceled = false, 49 ProgressState = ProgressState.Finished 50 }; 47 progress = new Progress(); 51 48 } 52 49 … … 70 67 Content.IsControllableChanged -= new EventHandler(Content_IsControllableChanged); 71 68 if (progressView != null) { 72 progressView.Content = null;73 69 progressView.Dispose(); 74 70 progressView = null; … … 110 106 111 107 private void PauseTaskAsync() { 112 progress.Status = "Pausing task. Please be patient for the command to take effect."; 113 progress.ProgressState = ProgressState.Started; 108 progress.Start("Pausing task. Please be patient for the command to take effect."); 114 109 Content.Pause(); 115 110 progress.Finish(); … … 117 112 118 113 private void StopTaskAsync() { 119 progress.Status = "Stopping task. Please be patient for the command to take effect."; 120 progress.ProgressState = ProgressState.Started; 114 progress.Start("Stopping task. Please be patient for the command to take effect."); 121 115 Content.Stop(); 122 116 progress.Finish(); … … 124 118 125 119 private void ResumeTaskAsync() { 126 progress.Status = "Resuming task. Please be patient for the command to take effect."; 127 progress.ProgressState = ProgressState.Started; 120 progress.Start("Resuming task. Please be patient for the command to take effect."); 128 121 Content.Restart(); 129 122 progress.Finish();
Note: See TracChangeset
for help on using the changeset viewer.