2 using System.Collections.Generic;
4 namespace DirectOutput.LedControl.Loader
17 public string ShortRomName
46 public void ParseLedControlDataLine(
string LedControlData,
bool ThrowExceptions)
51 List<string> DataColumns =
new List<string>(LedControlData.Split(
new char[] {
',' }, StringSplitOptions.None));
52 if (DataColumns.Count < 1)
54 Log.
Warning(
"No data found in line {0}".Build(LedControlData));
57 throw new Exception(
"No usable data found in line {0}".Build(LedControlData));
62 if (DataColumns[0].IsNullOrWhiteSpace())
64 Log.
Warning(
"No short Rom name found in line {0}".Build(LedControlData));
67 throw new Exception(
"No short Rom name found in line {0}".Build(LedControlData));
72 ShortRomName = DataColumns[0];
76 Columns.ParseControlData(LedControlData, ThrowExceptions);
108 ParseLedControlDataLine(LedControlData, ThrowExceptions);