- Timestamp:
- 11/16/17 10:30:21 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/EnhancedProgress/HeuristicLab.Clients.Hive.Views/3.3/HiveTasks/OptimizerHiveTaskView.cs
r15121 r15477 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>().Add OperationProgressToView(this, Content.Progress);60 MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().AddProgressToView(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>().Remove OperationProgressFromView(this, false);65 MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().RemoveProgressFromView(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.StartMarquee("Pausing task. Please be patient for the command to take effect."); 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.StartMarquee("Stopping task. Please be patient for the command to take effect."); 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.StartMarquee("Resuming task. Please be patient for the command to take effect."); 114 114 Content.Restart(); 115 115 Content.Progress.Finish();
Note: See TracChangeset
for help on using the changeset viewer.