CNCGUI.MainForm.ParseSN C# (CSharp) Method

ParseSN() private method

private ParseSN ( string &line, string fmt, int idx ) : void
line string
fmt string
idx int
return void
        private void ParseSN(ref string line, string fmt, int idx)
        {
            cnc.Axises[idx].SwitchMin.Value = AXIS_SWITCH.Off;
            if (scanf.Parse(line, string.Concat(fmt, " switch min %d [%s]")) == 2)
                cnc.Axises[idx].SwitchMin.Set(scanf, UseResponseItems.Checked);
        }