Changeset 3557 for trunk/sources/HeuristicLab.Optimizer/3.3/FileManager.cs
- Timestamp:
- 04/29/10 15:10:17 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimizer/3.3/FileManager.cs
r3500 r3557 42 42 if (newItemDialog == null) newItemDialog = new NewItemDialog(); 43 43 if (newItemDialog.ShowDialog() == DialogResult.OK) { 44 IView view = MainFormManager. CreateDefaultView(newItemDialog.Item);44 IView view = MainFormManager.MainForm.ShowContent(newItemDialog.Item); 45 45 if (view == null) MessageBox.Show("There is no view for the new item. It cannot be displayed.", "No View Available", MessageBoxButtons.OK, MessageBoxIcon.Error); 46 else view.Show();47 46 } 48 47 } … … 69 68 if (error != null) throw error; 70 69 Invoke(delegate() { 71 IView view = MainFormManager. CreateDefaultView(content);70 IView view = MainFormManager.MainForm.ShowContent(content); 72 71 if (view == null) MessageBox.Show("There is no view for the loaded item. It cannot be displayed.", "No View Available", MessageBoxButtons.OK, MessageBoxIcon.Error); 73 else view.Show();74 72 }); 75 73 }
Note: See TracChangeset
for help on using the changeset viewer.