public static GetModifiedCase ( |
||
symbolDB | ||
texts | List |
|
language | string | |
Результат | string |
// Get the modified case for a symbol. Checks the eventDB for overrides to the symbol text; otherwise uses the default for the symbol. string GetSymbolModifiedCase(Symbol symbol) { Event ev = eventDB.GetEvent(); string id = symbol.Id; if (ev.customSymbolText.ContainsKey(id) && Symbol.ContainsLanguage(ev.customSymbolText[id], language)) { return(Symbol.GetModifiedCase(symbolDB, ev.customSymbolText[id], language)); } else { return(symbol.GetModifiedCase(language)); } }
// Get the modified case for a symbol. Checks the eventDB for overrides to the symbol text; otherwise uses the default for the symbol. string GetSymbolModifiedCase(Symbol symbol) { Event ev = eventDB.GetEvent(); string id = symbol.Id; if (ev.customSymbolText.ContainsKey(id) && Symbol.ContainsLanguage(ev.customSymbolText[id], language)) return Symbol.GetModifiedCase(symbolDB, ev.customSymbolText[id], language); else return symbol.GetModifiedCase(language); }