コード例 #1
0
        public string this[string itemname]
        {
            get
            {
                int id = DefaultDiction.GetKeyByWord(itemname);

                if (id <= 0)
                {
                    return(null);
                }

                return(this[id]);
            }
        }
コード例 #2
0
 public string this[int idx]
 {
     get
     {
         UIResource value = null;
         _diction.TryGetValue(idx, out value);
         if (value == null)
         {
             return(DefaultDiction.Item(idx));
         }
         else
         {
             return(value.Resource);
         }
     }
 }
コード例 #3
0
 public static void BuildDefaultResource(Assembly assembly)
 {
     _instance = new DefaultDiction(assembly);
 }
コード例 #4
0
ファイル: DefaultTranslation.cs プロジェクト: 5509850/baumax
 public static void BuildDefaultResource(Assembly assembly)
 {
     _instance = new DefaultDiction(assembly);
 }