Exemplo n.º 1
0
 private void DeactivateServers()
 {
     AddLog("Trying to deactivate servers...");
     if (fEchoServer != null)
     {
         fEchoServer.Close();
     }
     AddLog("EchoServer is closed.");
     if (fHttpServer != null)
     {
         fHttpServer.Close();
     }
     AddLog("HttpServer is closed.");
     SetEnable(true);
     AddLog("Servers is deactivated");
     btnAction.Text = "Activate Servers";
 }