コード例 #1
0
 /// <summary>
 /// Disconnected from control board
 /// </summary>
 public void Disconnect()
 {
     handSwitchCheckThread.Abort();
     pcuCommunicationThread.Abort();
     handSwitchCheckThread  = null;
     pcuCommunicationThread = null;
     ioport.Close();
     consoleport.Close();
     ioport           = null;
     consoleport      = null;
     this.isConnected = false;
 }
コード例 #2
0
ファイル: PCUSimulator.cs プロジェクト: mildrock/SCBEmulator
 /// <summary>
 /// Disconnected from control board
 /// </summary>
 public void Disconnect()
 {
     handSwitchCheckThread.Abort();
     pcuCommunicationThread.Abort();
     handSwitchCheckThread = null;
     pcuCommunicationThread = null;
     ioport.Close();
     consoleport.Close();
     ioport = null;
     consoleport = null;
     this.isConnected = false;
 }