/*
         * Close event for the window defined in the xaml
         */
        public void Window_Closing(object sender, CancelEventArgs e)
        {
            Display("Shutting down WPFChatServer...\r\n", 1);
            Environment.ExitCode = 0;

            if (cs.serverRunning)
            {
                Environment.ExitCode = 1;
                cs.StopServer();
            }
            cs = null;
        }
Beispiel #2
0
 /*
  * Close even for the window defined in the xaml
  */
 public void Window_Closing(object sender, CancelEventArgs e)
 {
     cs.StopServer();
     cs = null;
 }