private void btnStop_Click(object sender, EventArgs e) { try { _server.Stop(); btnStart.Enabled = true; btnStop.Enabled = false; } catch { } }
public static void TearDown() { if (cassiniServer != null) { cassiniServer.Stop(); cassiniServer = null; } }
private void Stop() { try { if (_server != null) { _server.Stop(); _server = null; } } catch { } Close(); }