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

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

                return(this[id]);
            }
        }
Exemple #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);
         }
     }
 }
Exemple #3
0
 public static void BuildDefaultResource(Assembly assembly)
 {
     _instance = new DefaultDiction(assembly);
 }
Exemple #4
0
 public static void BuildDefaultResource(Assembly assembly)
 {
     _instance = new DefaultDiction(assembly);
 }