예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            FrmStudent frm = new FrmStudent();

            frm.Owner = this;
            this.Hide();
            frm.ShowDialog();
        }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == "陈杰" && textBox2.Text == "123" || textBox1.Text == "何辉" && textBox2.Text == "456")
            {
                FrmStudent f = new FrmStudent();
                f.Show();
                this.Hide();
            }

            else
            {
                MessageBox.Show("账号或密码错误");
            }
        }
예제 #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            string name     = this.textBox1.Text;
            string password = this.textBox2.Text;

            if (name.Equals("swpu") && password.Equals("123456"))
            {
                FrmStudent frm = new FrmStudent();
                frm.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("登录失败");
            }
        }
예제 #4
0
        private void Login_Click(object sender, EventArgs e)
        {
            string name     = this.TBname.Text;
            string password = this.TBpwd.Text;

            if (name.Equals("黄老师") && password.Equals("123"))
            {
                FrmStudent frm = new FrmStudent();
                frm.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("用户名或密码错误");
            }
        }
예제 #5
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     if (progressbarLogin.Value < progressbarLogin.Maximum)
     {
         progressbarLogin.Value++;
     }
     else
     {
         timer1.Enabled = false;
         this.Hide();
         MessageBox.Show(tutorId.Text[0].ToString() + "老师,欢迎使用本系统");
         FrmStudent f1 = new FrmStudent();
         f1.ShowDialog();
         //进度条加载完弹出使用界面
     }
 }
예제 #6
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (textBox1.Text == "黄本巍" && textBox2.Text == "123456")
     {
         MessageBox.Show("欢迎登录!", "提示");
         this.Hide();
         FrmStudent frmStudent = new FrmStudent();
         frmStudent.Show();
     }
     if (textBox1.Text == "付昶宇" && textBox2.Text == "123456")
     {
         MessageBox.Show("欢迎登录!", "提示");
         this.Hide();
         FrmStudent frmStudent = new FrmStudent();
         frmStudent.Show();
     }
 }
예제 #7
0
파일: Form1.cs 프로젝트: gy722/Calculator
        private void button1_Click(object sender, EventArgs e)
        {
            if
            (textBox1.Text == "王静宜" &&
             textBox2.Text == "123456")
            {
                Console.WriteLine("登录成功!");
            }
            if
            (textBox1.Text == "顾毓" &&
             textBox2.Text == "123456")
            {
                Console.WriteLine("登录成功!");
            }
            FrmStudent h = new FrmStudent();

            h.Show();
        }