Changeset 3741
- Timestamp:
- 05/10/10 15:25:51 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimizer/3.3/OptimizerMainForm.cs
r3557 r3741 21 21 22 22 using System; 23 using System.ComponentModel; 23 24 using System.Linq; 24 25 using System.Reflection; … … 84 85 } 85 86 87 protected override void OnClosing(CancelEventArgs e) { 88 base.OnClosing(e); 89 if (MainFormManager.MainForm.Views.OfType<IContentView>().FirstOrDefault() != null) { 90 if (MessageBox.Show(this, "Some views are still opened. If their content has not been saved, it will be lost after closing. Do you really want to close HeuristicLab Optimizer?", "Close Optimizer", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1) == DialogResult.No) 91 e.Cancel = true; 92 } 93 } 94 86 95 protected override void OnActiveViewChanged() { 87 96 base.OnActiveViewChanged();
Note: See TracChangeset
for help on using the changeset viewer.