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/MenuItems/RunInHiveMenuItem.cs

    r14185 r15477  
    8282      task.ItemTask.ComputeInParallel = content is Experiment || content is BatchRun;
    8383
    84       progress = MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().AddOperationProgressToContent(this.content, "Uploading to Hive...");
     84      progress = Progress.ShowMarquee(this.content, "Uploading to Hive...");
    8585      rJob.Progress = progress;
    8686      progress.ProgressStateChanged += progress_ProgressStateChanged;
     
    9191    private void progress_ProgressStateChanged(object sender, EventArgs e) {
    9292      if (progress.ProgressState != ProgressState.Started) {
    93         MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromContent(content);
     93        Progress.Hide(content);
    9494        progress.ProgressStateChanged -= progress_ProgressStateChanged;
    9595      }
     
    9797
    9898    private void HandleEx(Exception ex) {
    99       MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromContent(content);
     99      Progress.Hide(content);
    100100      progress.ProgressStateChanged -= progress_ProgressStateChanged;
    101101      ErrorHandling.ShowErrorDialog("Error uploading tasks", ex);
Note: See TracChangeset for help on using the changeset viewer.