Пример #1
0
 public void OTCZMove(int step)
 {
     if (isPowerOn && (otcBtn.XYZRelBtn || otcBtn.ZRelBtn))
     {
         if (step >= 0)
         {
             for (int i = 0; i < step; i++)
             {
                 otcxyz.ZStepUp();
             }
         }
         else
         {
             for (int i = 0; i < -step; i++)
             {
                 otcxyz.ZStepDown();
             }
         }
     }
 }
Пример #2
0
 private void button8_Click(object sender, EventArgs e)
 {
     otcxyz.ZStepDown();
     RefreshData();
 }