Adding app exit event handler.
1.1 --- a/Server/Program.cs Sun Jan 11 18:34:52 2015 +0100
1.2 +++ b/Server/Program.cs Sun Jan 11 19:00:16 2015 +0100
1.3 @@ -16,11 +16,23 @@
1.4 /// </summary>
1.5 [STAThread]
1.6 static void Main()
1.7 - {
1.8 + {
1.9 + Application.ApplicationExit += new EventHandler(OnApplicationExit);
1.10 + //
1.11 Application.EnableVisualStyles();
1.12 Application.SetCompatibleTextRenderingDefault(false);
1.13 iMainForm = new MainForm();
1.14 Application.Run(iMainForm);
1.15 }
1.16 +
1.17 + /// <summary>
1.18 + /// Occurs after form closing.
1.19 + /// </summary>
1.20 + /// <param name="sender"></param>
1.21 + /// <param name="e"></param>
1.22 + static private void OnApplicationExit(object sender, EventArgs e)
1.23 + {
1.24 +
1.25 + }
1.26 }
1.27 }