Esempio n. 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (SelectLanguage.Select())
     {
         UpdateValues();
     }
 }
Esempio n. 2
0
 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();
     }
 }
Esempio n. 3
0
        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;
            }
        }
Esempio n. 4
0
        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();
            }
        }
Esempio n. 5
0
        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));
            }
        }
Esempio n. 6
0
 private void Window_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
     SelectLanguage.Select();
 }