private void button_X_Positive_MouseDown(object sender, MouseEventArgs e) { if (radioButton_Step.Checked) { yamaha.Step(1, true); } else { yamaha.Jog(1, true); } }
private void btnYadd_MouseDown(object sender, MouseEventArgs e) { bool state; var result = mYAMAHA.Ready(out state); if (!state) { return; } if (moveSelectHorizontal1.MoveMode.Continue) { mYAMAHA.Step(2, true); } else { mYAMAHA.Jog(2, true); } }