示例#1
0
        private void HOME_Click(object sender, EventArgs e)
        {
            Form3 c = new Form3();

            c.Show();
            Hide();
        }
示例#2
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (v1 == null || v1.IsDisposed)
     {
         v1 = new Form3();
         v1.Show();
     }
 }
示例#3
0
        private void LOGIN_Click(object sender, EventArgs e)
        {
            if (USER.Text == "28" & PASS.Text == "12345")
            {

               //     MessageBox.Show("LOGIN SUCCESSFUL");
                Form3 f = new Form3();
                f.Show();
                Hide();
            }
            else
            {
              MessageBox.Show("LOGIN FAILED");
            }
        }
示例#4
0
        private void button1_Click(object sender, EventArgs e)
        {
            oracle.LinkToOracle("orcl","hui","oracle");
            OracleCommand cmd = oracle.getConnection().CreateCommand();
            String tno = textBox1.Text;
            String pwd = textBox2.Text;
            if (tno == "hui" & pwd == "123")
            {
                MessageBox.Show("登录成功");

                Form4 form4 = new Form4();
                this.Hide();
                form4.Show();
                return;
            }
            cmd.CommandText = String.Format("select * from teacher where tno='{0}'", tno);
            OracleDataReader reader = cmd.ExecuteReader();
            reader.Read();
            try
            {
                if (reader["pwd"].ToString() == pwd)
                {
                    MessageBox.Show("登录成功");

                    Form3 form3 = new Form3();
                    this.Hide();
                    form3.Show();
                    return;
                }
                if (tno == "hui" & pwd == "123")
                {
                    MessageBox.Show("登录成功");

                    Form4 form4 = new Form4();
                    this.Hide();
                    form4.Show();
                    return;
                }

                //MessageBox.Show("密码错误");
            }
            catch (Exception ex)
            {
                MessageBox.Show("登录帐号或密码错误");
            }

            oracle.LinkClose();
        }
示例#5
0
文件: Form2.cs 项目: madmed/netron
 private void sIPARISKARTLARIToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Form3 menu = new Form3();
     menu.Show();
     this.Hide();
 }
示例#6
0
 private void button2_Click(object sender, EventArgs e)
 {
     Form3 n = new Form3();
       n.Show();
       Hide();
 }
示例#7
0
 private async void button7_Click(object sender, EventArgs e)
 {
     Form3 frm = new Form3();
     frm.Show();
 }
示例#8
0
 private void help_clicked(object sender, EventArgs e)
 {
     Form3 help = new Form3();
     help.Show();
 }
示例#9
0
 private void button1_Click(object sender, EventArgs e)
 {
     Form3 form3 = new Form3();
     form3.Show();
 }