CNCGUI.MainForm.ParsePO C# (CSharp) Method

ParsePO() private method

private ParsePO ( string &line, string fmt, int idx ) : void
line string
fmt string
idx int
return void
        private void ParsePO(ref string line, string fmt, int idx)
        {
            cnc.Motors[idx].Polarity.Value = MOTOR_POLARITY.Normal;
            if (scanf.Parse(line, string.Concat(fmt, " polarity %d [%s]")) >= 1)
                cnc.Motors[idx].Polarity.Set(scanf, UseResponseItems.Checked);
        }