2 using System.Collections.Generic;
16 public void ParseLedcontrolData(IEnumerable<string> TableConfigDataFromLedControlIni,
bool ThrowExceptions =
true)
18 foreach (
string Data
in TableConfigDataFromLedControlIni)
20 if (!Data.IsNullOrWhiteSpace())
22 ParseLedcontrolData(Data, ThrowExceptions);
38 public void ParseLedcontrolData(
string TableConfigDataLineFromLedControlIni,
bool ThrowExceptions =
true)
43 TC =
new TableConfig(TableConfigDataLineFromLedControlIni, ThrowExceptions);
48 Log.
Exception(
"Could not load table config from data line: {0}".Build(TableConfigDataLineFromLedControlIni), E);
51 throw new Exception(
"Could not load table config from data line: {0}".Build(TableConfigDataLineFromLedControlIni),E);
59 Log.
Exception(
"Table with ShortRomName {0} has already been loaded (Exists more than once in ledcontrol file).".Build(TC.
ShortRomName));
62 throw new Exception(
"Table with ShortRomName {0} has already been loaded.".Build(TC.
ShortRomName));
82 if (TC.
ShortRomName.Equals(ShortRomName, StringComparison.InvariantCultureIgnoreCase))
A table config from a ini file.
void ParseLedcontrolData(IEnumerable< string > TableConfigDataFromLedControlIni, bool ThrowExceptions=true)
Parses several lines of LedControlData.
bool Contains(string ShortRomName)
Determines whether the list contains the specified short rom name.
A simple logger used to record important events and exceptions.
string ShortRomName
Gets or sets the short name of the rom.
void ParseLedcontrolData(string TableConfigDataLineFromLedControlIni, bool ThrowExceptions=true)
Parses a line of LedControl data contaning the config for a table.
static void Exception(string Message, Exception E=null)
Writes a exception message to the log.
A list of table configs from a ini file.