Exemple #1
0
        private void SetResourceCulture()
        {
            Text = ResourceCulture.GetString("FormMain");

            labName.Text = ResourceCulture.GetString("Name");
            labPass.Text = ResourceCulture.GetString("Password");

            btnChinese.Text = ResourceCulture.GetString("Chinese");
            btnEnglish.Text = ResourceCulture.GetString("English");

            btnLogin.Text = ResourceCulture.GetString("Login");
            btnReset.Text = ResourceCulture.GetString("Reset");
        }
Exemple #2
0
 private void btnEnglish_Click(object sender, EventArgs e)
 {
     ResourceCulture.SetCurrentCulture("en-US");
     SetResourceCulture();
 }
Exemple #3
0
 private void btnChinese_Click(object sender, EventArgs e)
 {
     ResourceCulture.SetCurrentCulture("zh-CN");
     SetResourceCulture();
 }
Exemple #4
0
        private void FormMain_Load(object sender, EventArgs e)
        {
            ResourceCulture.SetCurrentCulture("zh-CN");

            SetResourceCulture();
        }