Example #1
0
 private void MainForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     ISLogger.MessageOut -= ISLogger_MessageOut;
     if (server == null || server.Running)
     {
         server.Stop();
     }
     trayIcon.Visible = false;
     ISLogger.Exit();
 }
Example #2
0
        private static void Cmd_Stop()
        {
            if (!server.Running)
            {
                Console.WriteLine("Server not running");
                return;
            }

            server.Stop();
        }
Example #3
0
 public void StopServer()
 {
     serverInstance.Stop();
 }