public void LoadDefault(LanguagesStore store) { try { defaultLang = store.LoadDefaultLanguage(); } catch (Exception e) { Trace.WriteLine(e.StackTrace); Trace.WriteLine(e.Message); } }
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; }
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); }
private static void LoadLanguage() { try { var language = new Language(); ClientServiceLocator.Register<ILanguage>(language); var store = new LanguagesStore(); language.LoadDefault(store); } catch (Exception ) { } }
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); } }