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

                if (id <= 0)
                {
                    //throw new Exception();
                    return(null);
                }

                return(this[id]);
            }
        }
Exemple #2
0
 public static void BuildDefaultResource()
 {
     _instance = new DefaultDiction(typeof(DefaultDiction).Assembly);
 }
Exemple #3
0
 public static void BuildDefaultResource(LocaleType localeType)
 {
     _instance = new DefaultDiction(typeof(DefaultDiction).Assembly, localeType);
 }
Exemple #4
0
 public static void BuildDefaultResource(Assembly assembly)
 {
     _instance = new DefaultDiction(assembly);
 }
Exemple #5
0
 public static void BuildDefaultResource(Assembly assembly, LocaleType localeType)
 {
     _instance = new DefaultDiction(assembly, localeType);
 }
Exemple #6
0
 public static void BuildDefaultResource()
 {
     _instance = new DefaultDiction(typeof(DefaultDiction).Assembly);
 }
Exemple #7
0
 public static void BuildDefaultResource(LocaleType localeType)
 {
     _instance = new DefaultDiction(typeof(DefaultDiction).Assembly, localeType);
 }
Exemple #8
0
 public static void BuildDefaultResource(Assembly assembly)
 {
     _instance = new DefaultDiction(assembly);
 }
Exemple #9
0
 public static void BuildDefaultResource(Assembly assembly, LocaleType localeType)
 {
     _instance = new DefaultDiction(assembly, localeType);
 }
Exemple #10
0
 private string GetDefaultValue(int idx)
 {
     return(DefaultDiction.Item(idx));
 }