Changeset 16428 for branches/2845_EnhancedProgress/HeuristicLab.Optimizer
- Timestamp:
- 12/21/18 10:31:49 (6 years ago)
- Location:
- branches/2845_EnhancedProgress
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2845_EnhancedProgress
- Property svn:mergeinfo changed
-
branches/2845_EnhancedProgress/HeuristicLab.Optimizer
- Property svn:mergeinfo changed
-
branches/2845_EnhancedProgress/HeuristicLab.Optimizer/3.3/FileManager.cs
r16311 r16428 78 78 if (view == null) 79 79 ErrorHandling.ShowErrorDialog("There is no view for the loaded item. It cannot be displayed.", new InvalidOperationException("No View Available")); 80 } 81 catch (Exception ex) { 80 } catch (Exception ex) { 82 81 ErrorHandling.ShowErrorDialog((Control)MainFormManager.MainForm, "Cannot open file.", ex); 83 } 84 finally { 82 } finally { 85 83 ((MainForm.WindowsForms.MainForm)MainFormManager.MainForm).ResetAppStartingCursor(); 86 84 } … … 145 143 if (error != null) throw error; 146 144 MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().UpdateTitle(); 147 } 148 catch (Exception ex) { 145 } catch (Exception ex) { 149 146 ErrorHandling.ShowErrorDialog((Control)MainFormManager.MainForm, "Cannot save file.", ex); 150 } 151 finally { 147 } finally { 152 148 SetSaveOperationProgressInContentViews(content, false); 153 149 MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().ResetAppStartingCursor(); … … 161 157 mainForm.Invoke((Action)delegate { 162 158 if (showProgress) { 163 Progress.Show Marquee(content, string.Format("Saving to file \"{0}\"...", Path.GetFileName(fileName ?? content.Filename)));159 Progress.Show(content, string.Format("Saving to file \"{0}\"...", Path.GetFileName(fileName ?? content.Filename))); 164 160 } else 165 161 Progress.Hide(content);
Note: See TracChangeset
for help on using the changeset viewer.