GetModifiedCase() public static method

public static GetModifiedCase ( SymbolDB symbolDB, List texts, string language ) : string
symbolDB SymbolDB
texts List
language string
return string
示例#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));
            }
        }
示例#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);
        }