private void buttonConnect_Click(object sender, EventArgs e) { // mCmd.excuteCmdExcute("screen"); buttonConnect.Visible = false; screenCapThread(); Thread.Sleep(100); mClient.connect(); mClient.setParam(iDiv); usbWorkThread(); feedServerThread(); bOpen = true; }
public void connect() { // mCmd.excuteCmdExcute("screen"); if (bOpen == true) { return; } screenCapThread(); Thread.Sleep(100); mClient.connect(); mClient.setParam(iDiv); usbWorkThread(); feedServerThread(); bOpen = true; }