Changeset 13338 for branches/RefactorPluginInfrastructure-2522/HeuristicLab.Optimizer/3.3/FileManager.cs
- Timestamp:
- 11/23/15 16:14:30 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RefactorPluginInfrastructure-2522/HeuristicLab.Optimizer/3.3/FileManager.cs
r12012 r13338 46 46 IView view = MainFormManager.MainForm.ShowContent(newItemDialog.Item); 47 47 if (view == null) 48 ErrorHandling.ShowErrorDialog("There is no view for the new item. It cannot be displayed.", new InvalidOperationException("No View Available"));48 MainFormManager.MainForm.ShowError("There is no view for the new item. It cannot be displayed.", new InvalidOperationException("No View Available")); 49 49 } 50 50 } … … 77 77 IView view = MainFormManager.MainForm.ShowContent(content); 78 78 if (view == null) 79 ErrorHandling.ShowErrorDialog("There is no view for the loaded item. It cannot be displayed.", new InvalidOperationException("No View Available"));79 MainFormManager.MainForm.ShowError("There is no view for the loaded item. It cannot be displayed.", new InvalidOperationException("No View Available")); 80 80 } 81 81 catch (Exception ex) { 82 ErrorHandling.ShowErrorDialog((Control)MainFormManager.MainForm,"Cannot open file.", ex);82 MainFormManager.MainForm.ShowError("Cannot open file.", ex); 83 83 } 84 84 finally { 85 ((MainForm.WindowsForms.MainForm)MainFormManager.MainForm).ResetAppStartingCursor();85 MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().ResetAppStartingCursor(); 86 86 } 87 87 } … … 99 99 SaveAs(view); 100 100 else { 101 MainFormManager.GetMainForm< HeuristicLab.MainForm.WindowsForms.MainForm>().SetAppStartingCursor();101 MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().SetAppStartingCursor(); 102 102 SetSaveOperationProgressInContentViews(content, true); 103 103 ContentManager.SaveAsync(content, content.Filename, true, SavingCompleted); … … 147 147 } 148 148 catch (Exception ex) { 149 ErrorHandling.ShowErrorDialog((Control)MainFormManager.MainForm,"Cannot save file.", ex);149 MainFormManager.MainForm.ShowError("Cannot save file.", ex); 150 150 } 151 151 finally {
Note: See TracChangeset
for help on using the changeset viewer.