Changeset 17062 for stable/HeuristicLab.Problems.Instances.Views
- Timestamp:
- 07/04/19 14:45:47 (5 years ago)
- Location:
- stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.Instances.Views/3.3/ProblemInstanceProviderViewGeneric.cs
r15584 r17062 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.Show(content, "Loading problem instance.", ProgressMode.Indeterminate); 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.