Changeset 16447 for addons/HeuristicLab.Problems.BioBoost/HeuristicLab.Problems.BioBoost.Views/3.3/MenuItems
- Timestamp:
- 12/22/18 21:51:08 (6 years ago)
- Location:
- addons/HeuristicLab.Problems.BioBoost/HeuristicLab.Problems.BioBoost.Views/3.3/MenuItems
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
addons/HeuristicLab.Problems.BioBoost/HeuristicLab.Problems.BioBoost.Views/3.3/MenuItems/CreateBioBoostExperimentMenuItem.cs
r13074 r16447 79 79 public override void Execute() { 80 80 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"); 83 82 int n = nValues(typeof (Pathway))*nValues(typeof (Region))*nValues(typeof (Price))* nValues(typeof (Implementation)); 84 83 int count = 0; 85 progress.Start();86 84 progress.ProgressValue = 1.0*count/n; 87 85 var alg = activeView.Content as IAlgorithm; … … 119 117 dialog.ShowDialog(); 120 118 } 121 mainForm.RemoveOperationProgressFromContent(activeView.Content);119 Progress.Hide(activeView.Content); 122 120 }, null); 123 121 -
addons/HeuristicLab.Problems.BioBoost/HeuristicLab.Problems.BioBoost.Views/3.3/MenuItems/ExportSolutionMenuItem.cs
r13074 r16447 86 86 var folderName = folderBrowserDialog.SelectedPath; 87 87 IContentView activeView = (IContentView)MainFormManager.MainForm.ActiveView; 88 var mainForm = (MainForm.WindowsForms.MainForm)MainFormManager.MainForm; 89 mainForm.AddOperationProgressToContent(activeView.Content, "Export solutions."); 88 Progress.Show(activeView.Content, "Export solutions.", ProgressMode.Indeterminate); 90 89 91 90 Action<IContentView> action = (view) => { … … 119 118 dialog.ShowDialog(); 120 119 } 121 mainForm.RemoveOperationProgressFromContent(activeView.Content);120 Progress.Hide(activeView.Content); 122 121 }, null); 123 122 }
Note: See TracChangeset
for help on using the changeset viewer.