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); } }