protected void LoadLanguageFromSettings() { //TODO: decide how to handle program crashing when there is no service or there are other issues during language loading try { AudioReminderCore.Model.ServiceSettingsEntity settings = PersistenceAdapter.LoadSettings(); TranslationProvider.LoadNewLanguage(settings.Language); } catch (Exception) { } }
private void SettingsForm_Load(object sender, EventArgs e) { var settings = PersistenceAdapter.LoadSettings(); DisplaySettingsFromDto(settings); }