示例#1
0
        ///////////////////////////////////////////////////////////////////////////////////////////
        private void connectToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ConnectWindow connectWindow = new ConnectWindow(myConnection);

            connectWindow.ShowDialog(this);
            if (myConnection.Connected)
            {
                myConnection.SendMessage("help");
            }
        }
示例#2
0
 ///////////////////////////////////////////////////////////////////////////////////////////
 private void connectToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ConnectWindow connectWindow = new ConnectWindow(myConnection);
     connectWindow.ShowDialog(this);
     if(myConnection.Connected)
     {
         myConnection.SendMessage("help");
     }
 }