2 using System.Collections.Generic;
17 public string ShortRomName
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);
A table config from a ini file.
TableConfig(string LedControlData, bool ThrowExceptions)
Initializes a new instance of the TableConfig class. Gets the table config from led control data...
static void Warning(string Message)
Writes a warning message to the log.
void ParseLedControlDataLine(string LedControlData, bool ThrowExceptions)
Gets the table config from led control data. Parses one line of a Ledcontrol.ini file...
A simple logger used to record important events and exceptions.
List of columns of a LedCOntrol.ini file. Inherits List>T<.
TableConfig()
Initializes a new instance of the TableConfig class.