Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (client.IsConnected())
            {
                client.Disconnect();
            }
            else
            {
                client.Connect(textBoxCom.Text);
            }


            updateView();
        }
Beispiel #2
0
 bool isPortConnected()
 {
     if (isServiceConnected())
     {
         return(client.IsConnected());
     }
     return(false);
 }