Esempio n. 1
0
 private void GetLanguagePrefs()
 {
     if (this.textMgr != null)
     {
         this.prefs.guidLang = langSvc;
         LANGPREFERENCES[] langPrefs = new LANGPREFERENCES[1];
         langPrefs[0] = this.prefs;
         try {
             if (!this.user)
             {
                 textMgr.GetPerLanguagePreferences(langPrefs);
             }
             else
             {
                 textMgr.GetUserPreferences(null, null, langPrefs, null);
             }
             this.prefs = langPrefs[0];
         } catch (Exception ex) {
             Trace.WriteLine(ex.Message);
         }
     }
 }