示例#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 button7_Click(object sender, EventArgs e)
 {
     otcxyz.ZStepUp();
     RefreshData();
 }