示例#1
0
        private void FileSelectorSettings_Load(object sender, EventArgs e)
        {
            //设置默认语言
            String Language = Properties.Settings.Default.DefaultLanguage;

            switch (Language)
            {
            case "zh-CN":
                MultiLanguage.LoadCurrentFromLanguage("zh-CN");
                break;

            case "en-US":
                MultiLanguage.LoadCurrentFromLanguage("en-US");
                break;

            default:
                MultiLanguage.LoadCurrentFromLanguage("zh-CN");
                break;
            }
        }
示例#2
0
        private void ScreenShotSettings_Load(object sender, EventArgs e)
        {
            //设置默认语言
            String Language = Properties.Settings.Default.DefaultLanguage;

            switch (Language)
            {
            case "zh-CN":
                MultiLanguage.LoadCurrentFromLanguage("zh-CN");
                break;

            case "en-US":
                MultiLanguage.LoadCurrentFromLanguage("en-US");
                //目前使用的遍历控件方式暂时不能刷新到Label标签,并且只有一个label有汉语,所以Label强刷
                HideTheMainForm.Text = "Hide The MainForm";
                break;

            default:
                MultiLanguage.LoadCurrentFromLanguage("zh-CN");
                break;
            }
        }
示例#3
0
 /// <summary>
 /// 点击切换英文
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void en_US_Click(object sender, EventArgs e)
 {
     MultiLanguage.LoadCurrentFromLanguage("en-US");
 }
示例#4
0
 /// <summary>
 /// 点击切换中文
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void zh_CN_Click(object sender, EventArgs e)
 {
     MultiLanguage.LoadCurrentFromLanguage("zh-CN");
 }