Esempio n. 1
0
 public static Dictionary<string, DoubleLanguageNode> DoubleProcessLang(string title, string subTitle, params object[] otherNames)
 {
     var langs = new Dictionary<string, DoubleLanguageNode>(AppSettingCache.LanguageNum);
     var cnode = new DoubleLanguageNode() { Title = title, SubTitle = subTitle };
     langs[CustomArray.LanguageArray[0]] = cnode;
     if (AppSettingCache.Instance["LanauageTW"] == "1")
     {
         langs[CustomArray.LanguageArray[1]] = new TraditionDoubleNode(cnode);
     }
     if (AppSettingCache.Instance["LanauageEN"] == "2" && otherNames != null && otherNames.Length > 1)
     {
         langs[CustomArray.LanguageArray[2]] = new DoubleLanguageNode() { Title = Convert.ToString(otherNames[0]), SubTitle = Convert.ToString(otherNames[1]) };
     }
     return langs;
 }
Esempio n. 2
0
        public static Dictionary <string, DoubleLanguageNode> DoubleProcessLang(string title, string subTitle, params object[] otherNames)
        {
            var langs = new Dictionary <string, DoubleLanguageNode>(AppSettingCache.LanguageNum);
            var cnode = new DoubleLanguageNode()
            {
                Title = title, SubTitle = subTitle
            };

            langs[CustomArray.LanguageArray[0]] = cnode;
            if (AppSettingCache.Instance["LanauageTW"] == "1")
            {
                langs[CustomArray.LanguageArray[1]] = new TraditionDoubleNode(cnode);
            }
            if (AppSettingCache.Instance["LanauageEN"] == "2" && otherNames != null && otherNames.Length > 1)
            {
                langs[CustomArray.LanguageArray[2]] = new DoubleLanguageNode()
                {
                    Title = Convert.ToString(otherNames[0]), SubTitle = Convert.ToString(otherNames[1])
                };
            }
            return(langs);
        }
Esempio n. 3
0
 public TraditionDoubleNode(DoubleLanguageNode simpleNode)
 {
     _simpleNode = simpleNode;
 }
Esempio n. 4
0
 public TraditionDoubleNode(DoubleLanguageNode simpleNode)
 {
     _simpleNode = simpleNode;
 }