示例#1
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            EnumAxisType type = (EnumAxisType)value;

            if (parameter.ToString().ToLower() == "speed")
            {
                if (type == EnumAxisType.LinearAxis)
                {
                    return("mm/s");
                }
                else
                {
                    return("deg/s");
                }
            }
            else
            {
                if (type == EnumAxisType.LinearAxis)
                {
                    return("mm");
                }
                else
                {
                    return("deg");
                }
            }
        }
示例#2
0
        public AxisArgs()
        {
            CurAbsPos = 0;
            IsHomed   = false;
            IsBusy    = false;

            GainFactor  = 1;
            AxisLock    = new object();
            TimeOut     = 10;
            IsInRequest = false;
            MoveArgs    = new AxisMoveArgs();
            _axisType   = EnumAxisType.LinearAxis;
        }