示例#1
0
文件: MaintForm.cs 项目: licanwen/op
 private void button_X_Positive_MouseDown(object sender, MouseEventArgs e)
 {
     if (radioButton_Step.Checked)
     {
         yamaha.Step(1, true);
     }
     else
     {
         yamaha.Jog(1, true);
     }
 }
示例#2
0
文件: RootAxis.cs 项目: licanwen/op
        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);
            }
        }