Changeset 17062 for stable/HeuristicLab.Clients.Hive.Views/3.3/HiveTasks
- Timestamp:
- 07/04/19 14:45:47 (5 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Clients.Hive.Views
- Property svn:mergeinfo changed
/trunk/HeuristicLab.Clients.Hive.Views merged: 16356,16389,16430
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Clients.Hive.Views/3.3/HiveTasks/OptimizerHiveTaskView.cs
r15584 r17062 46 46 protected override void Job_ItemChanged(object sender, EventArgs e) { 47 47 if (Content != null && Content.Task != null && Content.ItemTask.Item != null) { 48 Content.ExecuteReadActionOnItemTask(new Action(delegate () {48 Content.ExecuteReadActionOnItemTask(new Action(delegate () { 49 49 runCollectionViewHost.Content = Content.ItemTask.Item.Runs; 50 50 })); … … 58 58 base.RegisterContentEvents(); 59 59 Content.IsControllableChanged += new EventHandler(Content_IsControllableChanged); 60 MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().AddOperationProgressToView(this, Content.Progress);60 Progress.Show(this, Content.Progress); 61 61 } 62 62 63 63 protected override void DeregisterContentEvents() { 64 64 Content.IsControllableChanged -= new EventHandler(Content_IsControllableChanged); 65 MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(this, false);65 Progress.Hide(this, false); 66 66 base.DeregisterContentEvents(); 67 67 } … … 99 99 100 100 private void PauseTaskAsync() { 101 Content.Progress.Start("Pausing task. Please be patient for the command to take effect." );101 Content.Progress.Start("Pausing task. Please be patient for the command to take effect.", ProgressMode.Indeterminate); 102 102 Content.Pause(); 103 103 Content.Progress.Finish(); … … 105 105 106 106 private void StopTaskAsync() { 107 Content.Progress.Start("Stopping task. Please be patient for the command to take effect." );107 Content.Progress.Start("Stopping task. Please be patient for the command to take effect.", ProgressMode.Indeterminate); 108 108 Content.Stop(); 109 109 Content.Progress.Finish(); … … 111 111 112 112 private void ResumeTaskAsync() { 113 Content.Progress.Start("Resuming task. Please be patient for the command to take effect." );113 Content.Progress.Start("Resuming task. Please be patient for the command to take effect.", ProgressMode.Indeterminate); 114 114 Content.Restart(); 115 115 Content.Progress.Finish();
Note: See TracChangeset
for help on using the changeset viewer.