private void btnForward_Click(object sender, EventArgs e)
        {
            MDouble.Millimeters nextPosition = new MDouble.Millimeters();
            if (!_isInvertDir)
            {
                nextPosition.Val = Math.Abs(_axis.JogStep.Val);
            }
            else
            {
                nextPosition.Val = -Math.Abs(_axis.JogStep.Val);
            }


            if (!_isRelative)
            {
                nextPosition.Val += _axis.CurrentPosition.Val;
            }


            DisableButton();

            try
            {
                if (!_isRelative)
                {
                    _axis.MoveAbs(nextPosition, _axis.DefaultSpeed);
                }
                else
                {
                    _axis.MoveRel(nextPosition, _axis.DefaultSpeed);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(string.Format("Error in jog Forward: {0}", ex.Message), "Error");
            }
            finally
            {
                EnableButton();
            }
        }
 private void OnVisionXTeachValueChange(MDouble.Millimeters teachPosition)
 {
     pgVisionX.Refresh();
 }
 private void OnLift2TeachValueChange(MDouble.Millimeters teachPosition)
 {
     pgLift2.Refresh();
 }
 private void OnFeedYTeachValueChange(MDouble.Millimeters teachPosition)
 {
     pgFeedY.Refresh();
 }