private void SystemSeting_Load(object sender, EventArgs e) { tabControlSystemSeting.Width = this.Width - tabControlSystemSeting.Location.X; tabControlSystemSeting.Height = this.Height - tabControlSystemSeting.Location.Y; CTextBoxSysSetRobotIP.Text = Profile.m_Config.RobotIp; //根据默认的属性配置来设置当前语言项 if (MultiLanguage.GetLanguage() == "zh-CN") { ComBoxSysLanguage.SelectedIndex = 0; } else if (MultiLanguage.GetLanguage() == "en-US") { ComBoxSysLanguage.SelectedIndex = 1; } }
private void SystemSeting_Load(object sender, EventArgs e) { CGroupBoxSysLanguage.Visible = true; //隐藏掉系统语言的设置 tabControlSystemSeting.Width = this.Width - tabControlSystemSeting.Location.X; tabControlSystemSeting.Height = this.Height - tabControlSystemSeting.Location.Y; //根据默认的属性配置来设置当前语言项 if (MultiLanguage.GetLanguage() == "zh-CN") { ComBoxSysLanguage.SelectedIndex = 0; } else if (MultiLanguage.GetLanguage() == "en-US") { ComBoxSysLanguage.SelectedIndex = 1; } }
private void RunForm_Load(object sender, EventArgs e) { MultiLanguage.LoadLanguage(this, typeof(RunForm)); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(MultiLanguage.GetLanguage()); Application.Run(new MainForm()); }