Пример #1
0
 private void btnStop_Click(object sender, EventArgs e)
 {
     try
     {
         _server.Stop();
         btnStart.Enabled = true;
         btnStop.Enabled  = false;
     }
     catch
     { }
 }
Пример #2
0
 public static void TearDown()
 {
     if (cassiniServer != null)
     {
         cassiniServer.Stop();
         cassiniServer = null;
     }
 }
Пример #3
0
        private void Stop()
        {
            try {
                if (_server != null)
                {
                    _server.Stop();
                    _server = null;
                }
            }
            catch {
            }

            Close();
        }