public TLCCCElement(string naam, int instelling, TLCCCElementTimeTypeEnum ttype, TLCCCElementTypeEnum type) { Dummy = false; Naam = naam; Define = TLCCCGeneratorSettingsProvider.Default.GetPrefix(type) + naam; Instelling = instelling; TType = ttype; Type = type; }
public TLCCCElement(string naam, TLCCCElementTypeEnum type) { Dummy = false; Naam = naam; Define = TLCCCGeneratorSettingsProvider.Default.GetPrefix(type) + naam; Type = type; switch (Type) { default: TType = TLCCCElementTimeTypeEnum.None; break; } }
public string GetPrefix(TLCCCElementTypeEnum type) { return(Settings.Prefixes.Any(x => x.Type == type) ? Settings.Prefixes.First(x => x.Type == type).Setting : null); }