private void rdRaCtrlRight_CheckedChanged(object sender, EventArgs e) { if (iSerial == null) { return; } BoxdorferCommand theCommand; if (rdRaCtrlRight.Checked) { theCommand = new BoxdorferCommand(BoxdorferSerial.writeRightOn); } else { theCommand = new BoxdorferCommand(BoxdorferSerial.writeRightOff); } iSerial.AddCommand(theCommand); }
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); }
private void btnRaGotoStop_Click(object sender, EventArgs e) { if (iSerial == null) { return; } BoxdorferCommand theCommand; theCommand = new BoxdorferCommand(BoxdorferSerial.writeRaGotoStop); iSerial.AddCommand(theCommand); }
private void btnResetCurrPos_Click(object sender, EventArgs e) { if (iSerial == null) { return; } BoxdorferCommand theCommand = new BoxdorferCommand(BoxdorferSerial.resetRaCurrentPos); iSerial.AddCommand(theCommand); raCurrentPos.Read(iSerial); }
private void btnRaGotoStart_Click(object sender, EventArgs e) { if (iSerial == null) { return; } raTargetPos.Write(iSerial); BoxdorferCommand theCommand; theCommand = new BoxdorferCommand(BoxdorferSerial.writeRaGotoStart); iSerial.AddCommand(theCommand); }