private void SetLanguage(string language) { UpdateConfig("language", language); try { AppSave.LanguageConfSave(language); } catch (Exception ex) { MessageBox.Show(ex.Message); } Application.Restart(); }
private void btnEng_Click(object sender, RoutedEventArgs e) { Culture = "en-US"; App.ChangeCulture(new CultureInfo(Culture)); try { AppSave.LanguageConfSave(Culture); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void SetLanguage(string language) { UpdateConfig("language", language); AppSave.LanguageConfSave(language); Application.Restart(); }