Ejemplo n.º 1
0
 public bool MoveAbsoVertical(int distance)
 {
     if (distance <= 1000)
     {
         return(ControlCom.MoveVertical(distance));
     }
     else
     {
         return(ControlCom.MoveVertical(1000));
     }
 }
Ejemplo n.º 2
0
        public bool MoveVectrialDown(int distance)
        {
            int locationV = ControlCom.GetVertical();
            int location  = locationV + distance;

            if (location <= 1000)
            {
                return(ControlCom.MoveVertical(location));
            }
            else
            {
                return(ControlCom.MoveVertical(1000));
            }
        }
Ejemplo n.º 3
0
        public bool MoveVectrialUp(int distance)
        {
            int locationV = ControlCom.GetVertical();
            int location  = locationV - distance;

            if (location >= 0)
            {
                return(ControlCom.MoveVertical(location));
            }
            else
            {
                return(ControlCom.MoveVertical(0));
            }
        }