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;
 }
Exemple #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);
        }
 public TraditionDoubleNode(DoubleLanguageNode simpleNode)
 {
     _simpleNode = simpleNode;
 }
 public TraditionDoubleNode(DoubleLanguageNode simpleNode)
 {
     _simpleNode = simpleNode;
 }