Exemple #1
0
        private bool CanOperate(int axis)
        {
            bool isZero       = IOHelper.IsZero();
            bool isStop       = IOHelper.IsStopButton();
            bool isNotWarning = IsNotWarning();
            bool isNotIgnore  = AxisSet.IsNotIgnore(axis);

            return((!isZero || axis == 4) && !isStop && isNotWarning && !isOperate && isNotIgnore);
        }
Exemple #2
0
 private bool CanOperate(int axis)
 {
     return((!IOHelper.IsZero() || axis == 4) && !IOHelper.IsStopButton() && IsNotWarning() && !isOperate && AxisSet.IsNotIgnore(axis));
 }