Exemplo n.º 1
0
        private void button_登录_Click(object sender, EventArgs e)
        {
            //倒计时器 a = new 倒计时器("登陆倒计时",30);
            //a.Show();



            if (textBox_用户名.Text.Trim() == String.Empty || textBox_密码.Text.Trim() == String.Empty) //为空
            {
                MessageBox.Show("请输入用户名和密码", "提示");
            }
            else
            {
                用户.初始用户名 = textBox_用户名.Text;
                chaxun_mima();
                if (textBox_密码.Text == 用户.初始密码)
                {
                    主界面 b = new 主界面();
                    b.Show();
                    PageList.nowPageId++;
                    PageList.pageList.Add(b);
                }
                else
                {
                    MessageBox.Show("账号或密码错误,请重新输入", "错误");  //提示错误;
                }
            }
        }