public void OTCBMove(int step) { if (isPowerOn && otcBtn.BRelBtn) { if (step >= 0) { for (int i = 0; i < step; i++) { otcxyz.BStepUp(); } } else { for (int i = 0; i < -step; i++) { otcxyz.BStepDown(); } } } }
private void button12_Click(object sender, EventArgs e) { otcxyz.BStepDown(); RefreshData(); }