Exemple #1
0
 public void LoadDefault(LanguagesStore store)
 {
     try {
         defaultLang = store.LoadDefaultLanguage();
     } catch (Exception e) {
         Trace.WriteLine(e.StackTrace);
         Trace.WriteLine(e.Message);
     }
 }
Exemple #2
0
 public void LoadDefault(LanguagesStore store)
 {
     try {
         defaultLang = store.LoadDefaultLanguage();
     } catch (Exception e) {
         Trace.WriteLine(e.StackTrace);
         Trace.WriteLine(e.Message);
     }
 }
Exemple #3
0
 public bool LoadWords(string name, LanguagesStore store)
 {
     try {
         actualLang = store.LoadLanguage(name);
     }
     catch (Exception e) {
         Trace.WriteLine(e.StackTrace);
         Trace.WriteLine(e.Message);
     }
     return true;
 }
Exemple #4
0
 public bool LoadWords(string name, LanguagesStore store)
 {
     try {
         actualLang = store.LoadLanguage(name);
     }
     catch (Exception e) {
         Trace.WriteLine(e.StackTrace);
         Trace.WriteLine(e.Message);
     }
     return(true);
 }
Exemple #5
0
 private static void LoadLanguage()
 {
     try {
         var language = new Language();
         ClientServiceLocator.Register<ILanguage>(language);
         var store = new LanguagesStore();
         language.LoadDefault(store);
     }
     catch (Exception ) {
     }
 }
Exemple #6
0
        private static void LoadLanguage() {
        	try {
        		var language = new Language();
				ClientServiceLocator.Register<ILanguage>(language);
				var store = new LanguagesStore();
				language.LoadDefault(store);
				language.LoadWords(Properties.Settings.Default.ActLanguage, store);
            }
            catch (Exception e) {
                MessageBox.Show(e.Message, ClientServiceLocator.GetService<ILanguage>().GetText("Error"), MessageBoxButtons.OK, MessageBoxIcon.Error);
                UseTrace(e);
            }
        }