private void AppClose(object sender, EventArgs e) { if (appServer != null) { appServer.Stop(); } }
public void Stop() { s.Stop(); s = null; this.Close(); }