CNCGUI.MainForm.ParsePM C# (CSharp) Method

ParsePM() private method

private ParsePM ( string &line, string fmt, int idx ) : void
line string
fmt string
idx int
return void
        private void ParsePM(ref string line, string fmt, int idx)
        {
            cnc.Motors[idx].PowerManagement.Value = ON_OFF.Off;
            if (scanf.Parse(line, string.Concat(fmt, " power management %d [%s]")) >= 1)
                cnc.Motors[idx].PowerManagement.Set(scanf, UseResponseItems.Checked);
        }