コード例 #1
0
ファイル: Localizer.cs プロジェクト: 5509850/baumax
        public string this[string itemname]
        {
            get
            {
                int id = DefaultDiction.GetKeyByWord(itemname);

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

                return(this[id]);
            }
        }
コード例 #2
0
ファイル: DefaultDiction.cs プロジェクト: 5509850/baumax
 public static void BuildDefaultResource()
 {
     _instance = new DefaultDiction(typeof(DefaultDiction).Assembly);
 }
コード例 #3
0
ファイル: DefaultDiction.cs プロジェクト: 5509850/baumax
 public static void BuildDefaultResource(LocaleType localeType)
 {
     _instance = new DefaultDiction(typeof(DefaultDiction).Assembly, localeType);
 }
コード例 #4
0
ファイル: DefaultDiction.cs プロジェクト: 5509850/baumax
 public static void BuildDefaultResource(Assembly assembly)
 {
     _instance = new DefaultDiction(assembly);
 }
コード例 #5
0
ファイル: DefaultDiction.cs プロジェクト: 5509850/baumax
 public static void BuildDefaultResource(Assembly assembly, LocaleType localeType)
 {
     _instance = new DefaultDiction(assembly, localeType);
 }
コード例 #6
0
ファイル: DefaultDiction.cs プロジェクト: 5509850/baumax
 public static void BuildDefaultResource()
 {
     _instance = new DefaultDiction(typeof(DefaultDiction).Assembly);
 }
コード例 #7
0
ファイル: DefaultDiction.cs プロジェクト: 5509850/baumax
 public static void BuildDefaultResource(LocaleType localeType)
 {
     _instance = new DefaultDiction(typeof(DefaultDiction).Assembly, localeType);
 }
コード例 #8
0
ファイル: DefaultDiction.cs プロジェクト: 5509850/baumax
 public static void BuildDefaultResource(Assembly assembly)
 {
     _instance = new DefaultDiction(assembly);
 }
コード例 #9
0
ファイル: DefaultDiction.cs プロジェクト: 5509850/baumax
 public static void BuildDefaultResource(Assembly assembly, LocaleType localeType)
 {
     _instance = new DefaultDiction(assembly, localeType);
 }
コード例 #10
0
ファイル: Localizer.cs プロジェクト: 5509850/baumax
 private string GetDefaultValue(int idx)
 {
     return(DefaultDiction.Item(idx));
 }