New option to start the application minimized.

This commit is contained in:
Michael Möller
2010-02-19 19:50:07 +00:00
parent d77bf5d686
commit d89b883632
3 changed files with 50 additions and 19 deletions
+10 -1
View File
@@ -51,12 +51,21 @@ namespace OpenHardwareMonitor {
#endif
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new GUI.MainForm());
using (GUI.MainForm form = new GUI.MainForm()) {
form.FormClosed += delegate(Object sender, FormClosedEventArgs e) {
Application.Exit();
};
Application.Run();
}
#if !DEBUG
} catch (Exception e) {
Utilities.CrashReport.Save(e);
}
#endif
}
}
}