CNCGUI.MainForm.ParseMA C# (CSharp) Method

ParseMA() private method

private ParseMA ( string &line, string fmt, int idx ) : void
line string
fmt string
idx int
return void
        private void ParseMA(ref string line, string fmt, int idx)
        {
            cnc.Motors[idx].Axis.Value = MOTOR_AXIS.X;
            if (scanf.Parse(line, string.Concat(fmt, " map to axis %d")) == 1)
                cnc.Motors[idx].Axis.Set(scanf);
        }