1 using System.Collections.Generic;
24 Dictionary<int, TableConfig> D =
new Dictionary<int, TableConfig>();
26 bool FoundMatch =
false;
41 if (FoundMatch)
return D;
48 if (RomName.ToUpper().StartsWith(
"{0}_".Build(TC.
ShortRomName.ToUpper())))
57 if (FoundMatch)
return D;
85 return GetTableConfigDictonary(RomName).Count > 0;
97 for (
int i = 0; i < LedControlFilenames.Count; i++)
99 LoadLedControlFile(LedControlFilenames[i], i + 1, ThrowExceptions);
108 public void LoadLedControlFiles(Dictionary<int, FileInfo> LedControlIniFiles,
bool ThrowExceptions =
false)
110 foreach (KeyValuePair<int,FileInfo> F
in LedControlIniFiles)
112 LoadLedControlFile(F.Value.FullName, F.Key, ThrowExceptions);
123 public void LoadLedControlFile(
string LedControlFilename,
int LedWizNumber,
bool ThrowExceptions =
false)
125 Log.
Write(
"Loading LedControl file {0}".Build(LedControlFilename));
144 LoadLedControlFiles(LedControlFilenames, ThrowExceptions);
A table config from a ini file.
The namespace DirectOutput.Cab.Toys contains all toy related classes.
TableConfigList TableConfigurations
Gets or sets the list of table configurations in the ledcontrol.ini.
bool ContainsConfig(string RomName)
Determines whether a config for the spcified RomName exists in the configs.
void LoadLedControlFiles(IList< string > LedControlFilenames, bool ThrowExceptions=false)
Loads a list of ledcontrol.ini files.
int LedWizNumber
Gets or sets the number of the LedWiz resp. LedWizEquivalent to which the settings in this config wil...
static void Write(string Message)
Writes the specified message to the logfile.
void LoadLedControlFiles(Dictionary< int, FileInfo > LedControlIniFiles, bool ThrowExceptions=false)
Loads a list of ledcontrol.ini files.
A simple logger used to record important events and exceptions.
string ShortRomName
Gets or sets the short name of the rom.
Dictionary< int, TableConfig > GetTableConfigDictonary(string RomName)
Gets a dictionary of table configs for a specific romname from the loaded ini file data...
void LoadLedControlFile(string LedControlFilename, int LedWizNumber, bool ThrowExceptions=false)
Loads a single ledcontrol.ini file.
The namespace DirectOutput.Cab contains all cabinet related classes like the Cabinet class itself...
Ledcontrol configuration read from a ledcontrol.ini file.
List of LedControlConfig objects loaded from LedControl.ini files.
The Table namespace contains all table specific classes like the Table class itself, TableElement and effect assigment classes.
LedControlConfigList(IList< string > LedControlFilenames, bool ThrowExceptions=false)
Initializes a new instance of the LedControlConfigList class.
LedControlConfigList()
Initializes a new instance of the LedControlConfigList class.