コード例 #1
0
 public void LoadLanguage()
 {
     if (!IsValidLanguage(LanguageStr))
     {
         throw new Exception("Language is not valid in mainSettings!");
     }
     Language = new Lang.Language();
     Language.Load($"Config/Lang/{LanguageStr}");
 }
コード例 #2
0
 public void LoadLanguage()
 {
     if (!IsValidLanguage(LanguageStr))
     {
         throw new Exception("Language is not valid in mainSettings!");
     }
     Language = new Lang.Language();
     Language.Load(Path.Combine(ConfigPath, $"Lang/{LanguageStr}"));
 }