private void disconnectToolStripMenuItem_Click(object sender, EventArgs e) { ServTools st = new ServTools(); st.ShutdownServer(serv, cThread); }
private void exitToolStripMenuItem_Click(object sender, EventArgs e) { ServTools st = new ServTools(); st.ShutdownServer(serv, cThread); Application.Exit(); }
private void btnConsoleSend_Click(object sender = null, EventArgs e = null) { ServTools st = new ServTools(); string cmd = txtConsoleCommand.Text; // write to command to console updateConsole("\r\n> " + cmd + "\r\n"); st.Send(serv, cmd + "\r\n"); if (cmd == "quit") st.ShutdownServer(serv, cThread); // results will be automatically displayed. all we need to do is clear the command buffer txtConsoleCommand.Text = null; }