2 using System.Collections.Generic;
4 namespace DirectOutput.LedControl.Loader
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));
78 public bool Contains(
string ShortRomName)
82 if (TC.
ShortRomName.Equals(ShortRomName, StringComparison.InvariantCultureIgnoreCase))