public void Write(BoxdorferSerial theChannel) { if (theChannel != null) { theChannel.AddCommand(this); } }
public void Read(BoxdorferSerial theChannel) { //iLogger.Debug(String.Format("BoxdorferLong Read {0:X}", iReceiveCommand)); if (theChannel != null) { isWriting = false; theChannel.AddCommand(this); } }
public void Write(BoxdorferSerial theChannel) { //iLogger.Debug(String.Format("BoxdorferLong Write {0:X}", iSendCommand)); if (theChannel != null) { isWriting = true; theChannel.AddCommand(this); } }
private void chkRaTracking_CheckedChanged(object sender, EventArgs e) { if (iSerial == null) { return; } BoxdorferCommand theCommand; if (chkRaTracking.Checked) { theCommand = new BoxdorferCommand(BoxdorferSerial.writeOnOn); } else { theCommand = new BoxdorferCommand(BoxdorferSerial.writeOnOff); } iSerial.AddCommand(theCommand); }
/** * @brief * Send the command to the controler * * @param theChannel * The serial connection to the controler */ public void Send(BoxdorferSerial theChannel) { theChannel.AddCommand(this); }