Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
        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;
            }
        }
Ejemplo n.º 3
0
 private void RunForm_Load(object sender, EventArgs e)
 {
     MultiLanguage.LoadLanguage(this, typeof(RunForm));
 }
Ejemplo n.º 4
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(MultiLanguage.GetLanguage());

            Application.Run(new MainForm());
        }