Beispiel #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     // 断开连接
     siemensTcpNet.ConnectClose( );
     button2.Enabled = false;
     button1.Enabled = true;
     panel2.Enabled  = false;
 }
Beispiel #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            // 断开连接
            OperateResult result = siemensTcpNet.ConnectClose();

            if (result.IsSuccess)
            {
                Isconnect = false;
            }
            button2.Enabled = false;
            button1.Enabled = true;
            panel2.Enabled  = false;
        }