Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/22/18 21:51:08 (5 years ago)
Author:
jkarder
Message:

#2845: adapted BioBoost addon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • addons/HeuristicLab.Problems.BioBoost/HeuristicLab.Problems.BioBoost.Views/3.3/MenuItems/CreateBioBoostExperimentMenuItem.cs

    r13074 r16447  
    7979    public override void Execute() {
    8080      IContentView activeView = (IContentView)MainFormManager.MainForm.ActiveView;
    81       var mainForm = ((MainForm.WindowsForms.MainForm) MainFormManager.MainForm);
    82       var progress = mainForm.AddOperationProgressToContent(activeView.Content, "Generating Algorithm Configurations");
     81      var progress = Progress.Show(activeView.Content, "Generating Algorithm Configurations");
    8382      int n = nValues(typeof (Pathway))*nValues(typeof (Region))*nValues(typeof (Price))* nValues(typeof (Implementation));
    8483      int count = 0;
    85       progress.Start();
    8684      progress.ProgressValue = 1.0*count/n;
    8785      var alg = activeView.Content as IAlgorithm;
     
    119117          dialog.ShowDialog();
    120118        }
    121         mainForm.RemoveOperationProgressFromContent(activeView.Content);
     119        Progress.Hide(activeView.Content);
    122120      }, null);
    123121
Note: See TracChangeset for help on using the changeset viewer.