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