Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/16/17 10:30:21 (7 years ago)
Author:
pfleck
Message:

#2845

  • Added an explicit method for StartMarquee.
  • Renamed Add/RemoveOperationProgress methods.
  • Moved progress helpers from MainForm into static Progress methods named Show and Hide.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/EnhancedProgress/HeuristicLab.Clients.Hive.Views/3.3/HiveTasks/OptimizerHiveTaskView.cs

    r15121 r15477  
    4646    protected override void Job_ItemChanged(object sender, EventArgs e) {
    4747      if (Content != null && Content.Task != null && Content.ItemTask.Item != null) {
    48         Content.ExecuteReadActionOnItemTask(new Action(delegate() {
     48        Content.ExecuteReadActionOnItemTask(new Action(delegate () {
    4949          runCollectionViewHost.Content = Content.ItemTask.Item.Runs;
    5050        }));
     
    5858      base.RegisterContentEvents();
    5959      Content.IsControllableChanged += new EventHandler(Content_IsControllableChanged);
    60       MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().AddOperationProgressToView(this, Content.Progress);
     60      MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().AddProgressToView(this, Content.Progress);
    6161    }
    6262
    6363    protected override void DeregisterContentEvents() {
    6464      Content.IsControllableChanged -= new EventHandler(Content_IsControllableChanged);
    65       MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(this, false);
     65      MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().RemoveProgressFromView(this, false);
    6666      base.DeregisterContentEvents();
    6767    }
     
    9999
    100100    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.");
    102102      Content.Pause();
    103103      Content.Progress.Finish();
     
    105105
    106106    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.");
    108108      Content.Stop();
    109109      Content.Progress.Finish();
     
    111111
    112112    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.");
    114114      Content.Restart();
    115115      Content.Progress.Finish();
Note: See TracChangeset for help on using the changeset viewer.