Exemplo n.º 1
0
        private void CultureButton_Click(object sender, System.EventArgs e)
        {
            CultureChooser GetCultureForm = new CultureChooser();

            GetCultureForm.ShowDialog();
            ChosenCulture = GetCultureForm.UsersChoice;
            GetCultureForm.Close();
            OutputTextBox.Text = RM.GetString("SimpleTextString");
            // TODO: Set the current thread’s Culture and UICulture property values to the user requested in CultureChooser.

            UsabilityDemo DemoForm = new UsabilityDemo(ChosenCulture);

            DateButton.Enabled     = true;
            CurrencyButton.Enabled = true;
            StringButton.Enabled   = true;

            this.Hide();
            DemoForm.Show();
        }
Exemplo n.º 2
0
        private void CultureButton_Click(object sender, System.EventArgs e)
        {
            CultureChooser GetCultureForm = new CultureChooser();

            GetCultureForm.ShowDialog();
            ChosenCulture = GetCultureForm.UsersChoice;
            GetCultureForm.Close();

            // TODO: Set the current thread’s Culture and UICulture property values to the user requested in CultureChooser.
            Thread.CurrentThread.CurrentUICulture = new CultureInfo(ChosenCulture, false);
            Thread.CurrentThread.CurrentCulture   = new CultureInfo(ChosenCulture, false);

            UsabilityDemo DemoForm = new UsabilityDemo(ChosenCulture);

            DateButton.Enabled     = true;
            CurrencyButton.Enabled = true;
            StringButton.Enabled   = true;

            this.Hide();
            DemoForm.Show();
        }