Esempio n. 1
0
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            LoadLanguage();
            StartForm startForm = new StartForm(null, false);

            startForm.SetLanDic(m_lanDic, m_lanIndex, m_region, m_split);
            Application.Run(startForm);
            return;
        }
Esempio n. 2
0
 private void btnLogin_Click(object sender, EventArgs e)
 {
     if (startForm == null)
     {
         startForm = new StartForm(this, true);
     }
     if (UserService.CheckUser(txtName.Text, txtPassword.Text, 1))
     {
         this.Hide();
         startForm.SetLanDic(m_remoteLanDic, m_lanIndex, m_region, m_split);
         startForm.Show();
     }
     else
     {
         MessageBox.Show(TranslateCodeText("用户名或密码错误"));
     }
 }