GetModifiedCase() public static method

public static GetModifiedCase ( SymbolDB symbolDB, List texts, string language ) : string
symbolDB SymbolDB
texts List
language string
return string
Ejemplo n.º 1
0
        // 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));
            }
        }
Ejemplo n.º 2
0
        // 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);
        }