Exemple #1
0
 private ResourceManager GetResourceManager(LanguageSection managerName)
 {
     if (!resManLookUp.ContainsKey(managerName))
     {
         resManLookUp.Add(managerName, new ResourceManager(this.GetType().Namespace + ".Resources." + managerName, this.GetType().Assembly));
     }
     return(resManLookUp[managerName]);
 }
Exemple #2
0
 public string GetString(LanguageSection section, string key)
 {
     return(GetResourceManager(section).GetString(key, Thread.CurrentThread.CurrentCulture));
 }