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.JobManager/3.3/Views/RefreshableHiveJobListView.cs

    r14185 r15477  
    109109
    110110        task.ContinueWith((t) => {
    111           MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(this);
     111          Progress.Hide(this);
    112112          ErrorHandling.ShowErrorDialog("An error occured while deleting the job. ", t.Exception);
    113113        }, TaskContinuationOptions.OnlyOnFaulted);
     
    120120
    121121    private void DeleteHiveJobsAsync(object items) {
    122       MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().AddOperationProgressToView(this, "Deleting job...");
     122      Progress.ShowMarquee(this, "Deleting job...");
    123123      foreach (RefreshableJob item in (List<RefreshableJob>)items) {
    124124        Content.Remove(item);
    125125      }
    126       MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(this);
     126      Progress.Hide(this);
    127127    }
    128128
Note: See TracChangeset for help on using the changeset viewer.