private void button1_Click(object sender, EventArgs e) { if (SelectLanguage.Select()) { UpdateValues(); } }
private void languageButton_Click(object sender, RoutedEventArgs e) { // Show a language select dialog and turn on the selected language if (SelectLanguage.Select(DisplaLanugage)) { // Language has been changed. // Properties that were set on run time must be reset. UpdateItems(); } }
private void languageToolStripMenuItem_Click(object sender, EventArgs e) { // Show a language select dialog and turn on the selected language if (SelectLanguage.Select()) { // Language has been changed. Update the language of the plural engine. SetPluralLanguage(); // Translator does not translate images. Let's translate them. carPictureBox.Image = Properties.Resources.car_sedan_blue; flagPictureBox.Image = Properties.Resources.flag_great_britain; } }
private void languageButton_Click(object sender, EventArgs e) { // Show a language select dialog and turn on the selected language if (SelectLanguage.Select()) { // Language has been changed. // Properties that were set on run time must be reset. UpdateItems(); // Store the language Properties.Settings.Default.Language = Language.Culture.Name; Properties.Settings.Default.Save(); } }
private void languageMenu_Click(object sender, RoutedEventArgs e) { // Show a language select dialog and turn on the selected language if (SelectLanguage.Select()) { // Language has been changed. // Properties that were set on run time must be reset. UpdateItems(); // Translator does not translate images. Let's translate them. flagImage.Source = null; carImage.Source = null; UpdateLayout(); GC.Collect(); flagImage.Source = new BitmapImage(new Uri("flag_united_kingdom.png", UriKind.Relative)); carImage.Source = new BitmapImage(new Uri("car_sedan_blue.png", UriKind.Relative)); } }
private void Window_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e) { SelectLanguage.Select(); }