Example #1
0
 private void pictureBox1_Click(object sender, EventArgs e)
 {
     RuntimeLocalizer.ChangeCulture(Form1.ActiveForm, "en");
     txt_boy.Text      = "";
     txt_kilo.Text     = "";
     textBox2.Text     = "";
     cmb_cins.Items[0] = "Male";
     cmb_cins.Items[1] = "Female";
     cmb_cins.Text     = "Select :";
 }
Example #2
0
 private void pictureBox2_Click(object sender, EventArgs e)
 {
     RuntimeLocalizer.ChangeCulture(Form1.ActiveForm, "tr-TR");
     txt_boy.Text      = "";
     txt_kilo.Text     = "";
     textBox2.Text     = "";
     cmb_cins.Items[0] = "Erkek";
     cmb_cins.Items[1] = "Kadın";
     cmb_cins.Text     = "Seçiniz :";
 }
Example #3
0
        public override void Apply()
        {
            if (Karaclass.m_lang == m_langCB.Text)
            {
                return;
            }

            Karaclass.m_lang = m_langCB.Text;
            Properties.Settings.Default.lang = m_langCB.Text;
            Properties.Settings.Default.Save();



            // Change the culture for the App domain
            // Allow to manage languages for usercontrols
            switch (Karaclass.m_lang)
            {
            case "English":
                culture = "en-US";
                break;

            case "Français":
                culture = "fr-FR";
                break;

            default:
                culture = "en-US";
                break;
            }
            RuntimeLocalizer.ChangeCulture(culture);



            // Modifie le formulaire frmExplorer
            if (Application.OpenForms["frmExplorer"] != null)
            {
                RuntimeLocalizer.ChangeCultureForm(Application.OpenForms["frmExplorer"], culture);
            }
        }
Example #4
0
 private void SelectChinese(object sender, EventArgs e) =>
 RuntimeLocalizer.ChangeCulture(this, "zh-Hant");
Example #5
0
 private void SelectGerman(object sender, EventArgs e) =>
 RuntimeLocalizer.ChangeCulture(this, "de-DE");
Example #6
0
 private void SelectEnglish(object sender, EventArgs e) =>
 RuntimeLocalizer.ChangeCulture(this, string.Empty);