Changeset 15477 for branches/EnhancedProgress/HeuristicLab.Clients.Hive.JobManager/3.3/MenuItems/RunInHiveMenuItem.cs
- Timestamp:
- 11/16/17 10:30:21 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/EnhancedProgress/HeuristicLab.Clients.Hive.JobManager/3.3/MenuItems/RunInHiveMenuItem.cs
r14185 r15477 82 82 task.ItemTask.ComputeInParallel = content is Experiment || content is BatchRun; 83 83 84 progress = MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().AddOperationProgressToContent(this.content, "Uploading to Hive...");84 progress = Progress.ShowMarquee(this.content, "Uploading to Hive..."); 85 85 rJob.Progress = progress; 86 86 progress.ProgressStateChanged += progress_ProgressStateChanged; … … 91 91 private void progress_ProgressStateChanged(object sender, EventArgs e) { 92 92 if (progress.ProgressState != ProgressState.Started) { 93 MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromContent(content);93 Progress.Hide(content); 94 94 progress.ProgressStateChanged -= progress_ProgressStateChanged; 95 95 } … … 97 97 98 98 private void HandleEx(Exception ex) { 99 MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromContent(content);99 Progress.Hide(content); 100 100 progress.ProgressStateChanged -= progress_ProgressStateChanged; 101 101 ErrorHandling.ShowErrorDialog("Error uploading tasks", ex);
Note: See TracChangeset
for help on using the changeset viewer.