コード例 #1
0
ファイル: FormMain.cs プロジェクト: jjc-ipod/torque
 private void disconnectToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ServTools st = new ServTools();
     st.ShutdownServer(serv, cThread);
 }
コード例 #2
0
ファイル: FormMain.cs プロジェクト: jjc-ipod/torque
 private void exitToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ServTools st = new ServTools();
     st.ShutdownServer(serv, cThread);
     Application.Exit();
 }
コード例 #3
0
ファイル: FormMain.cs プロジェクト: jjc-ipod/torque
 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;
 }