Changeset 15477 for branches/EnhancedProgress/HeuristicLab.Problems.Instances.Views/3.3/ProblemInstanceProviderViewGeneric.cs
- Timestamp:
- 11/16/17 10:30:21 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/EnhancedProgress/HeuristicLab.Problems.Instances.Views/3.3/ProblemInstanceProviderViewGeneric.cs
r14185 r15477 121 121 122 122 IContentView activeView = (IContentView)MainFormManager.MainForm.ActiveView; 123 var mainForm = (MainForm.WindowsForms.MainForm)MainFormManager.MainForm;123 var content = activeView.Content; 124 124 // lock active view and show progress bar 125 mainForm.AddOperationProgressToContent(activeView.Content, "Loading problem instance.");125 Progress.ShowMarquee(content, "Loading problem instance."); 126 126 127 127 Task.Factory.StartNew(() => { … … 131 131 } catch (Exception ex) { 132 132 ErrorHandling.ShowErrorDialog(String.Format("Could not load the problem instance {0}", descriptor.Name), ex); 133 mainForm.RemoveOperationProgressFromContent(activeView.Content);133 Progress.Hide(content); 134 134 return; 135 135 } … … 139 139 ErrorHandling.ShowErrorDialog(String.Format("This problem does not support loading the instance {0}", descriptor.Name), ex); 140 140 } finally { 141 mainForm.RemoveOperationProgressFromContent(activeView.Content);141 Progress.Hide(content); 142 142 } 143 143 });
Note: See TracChangeset
for help on using the changeset viewer.