1.1 --- a/Program.cs Fri Feb 19 18:33:08 2010 +0000
1.2 +++ b/Program.cs Fri Feb 19 19:50:07 2010 +0000
1.3 @@ -51,12 +51,21 @@
1.4 #endif
1.5 Application.EnableVisualStyles();
1.6 Application.SetCompatibleTextRenderingDefault(false);
1.7 - Application.Run(new GUI.MainForm());
1.8 +
1.9 + using (GUI.MainForm form = new GUI.MainForm()) {
1.10 + form.FormClosed += delegate(Object sender, FormClosedEventArgs e) {
1.11 + Application.Exit();
1.12 + };
1.13 + Application.Run();
1.14 + }
1.15 +
1.16 #if !DEBUG
1.17 } catch (Exception e) {
1.18 Utilities.CrashReport.Save(e);
1.19 }
1.20 #endif
1.21 }
1.22 +
1.23 +
1.24 }
1.25 }