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.
Location:
branches/EnhancedProgress/HeuristicLab.Optimizer/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/EnhancedProgress/HeuristicLab.Optimizer/3.3/FileManager.cs

    r14185 r15477  
    161161      mainForm.Invoke((Action)delegate {
    162162        if (showProgress) {
    163           mainForm.AddOperationProgressToContent(content, string.Format("Saving to file \"{0}\"...", Path.GetFileName(fileName ?? content.Filename)));
     163          Progress.ShowMarquee(content, string.Format("Saving to file \"{0}\"...", Path.GetFileName(fileName ?? content.Filename)));
    164164        } else
    165           mainForm.RemoveOperationProgressFromContent(content);
     165          Progress.Hide(content);
    166166      });
    167167      #endregion
  • branches/EnhancedProgress/HeuristicLab.Optimizer/3.3/StartPage.cs

    r15446 r15477  
    8888
    8989    private void LoadSamples(object state) {
    90       progress = MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().AddOperationProgressToView(samplesListView, "Loading...", 0);
     90      progress = Progress.Show(samplesListView, "Loading...");
    9191      try {
    9292        var assembly = Assembly.GetExecutingAssembly();
     
    112112        OnAllSamplesLoaded();
    113113      } finally {
    114         MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(samplesListView);
     114        Progress.Hide(samplesListView);
    115115      }
    116116    }
Note: See TracChangeset for help on using the changeset viewer.