private void HOME_Click(object sender, EventArgs e) { Form3 c = new Form3(); c.Show(); Hide(); }
private void button2_Click(object sender, EventArgs e) { if (v1 == null || v1.IsDisposed) { v1 = new Form3(); v1.Show(); } }
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"); } }
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(); }
private void sIPARISKARTLARIToolStripMenuItem_Click(object sender, EventArgs e) { Form3 menu = new Form3(); menu.Show(); this.Hide(); }
private void button2_Click(object sender, EventArgs e) { Form3 n = new Form3(); n.Show(); Hide(); }
private async void button7_Click(object sender, EventArgs e) { Form3 frm = new Form3(); frm.Show(); }
private void help_clicked(object sender, EventArgs e) { Form3 help = new Form3(); help.Show(); }
private void button1_Click(object sender, EventArgs e) { Form3 form3 = new Form3(); form3.Show(); }