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; } }
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; } }
/// <summary> /// 点击切换英文 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void en_US_Click(object sender, EventArgs e) { MultiLanguage.LoadCurrentFromLanguage("en-US"); }
/// <summary> /// 点击切换中文 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void zh_CN_Click(object sender, EventArgs e) { MultiLanguage.LoadCurrentFromLanguage("zh-CN"); }