Ejemplo n.º 1
0
 private void button3_Click(object sender, EventArgs e)
 {
     if (v2 == null || v2.IsDisposed)
     {
         v2 = new Form4();
         v2.Show();
     }
 }
Ejemplo n.º 2
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();
        }
        private void bookmarksToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var myForm = new Form4(user, instance, userID, password, databaseName);

            myForm.Show();
        }
Ejemplo n.º 4
0
        private void Form3_FormClosing(object sender, FormClosingEventArgs e)
        {
            Form4 form4 = new Form4();

            form4.Show();
        }
Ejemplo n.º 5
0
        private void button3_Click(object sender, EventArgs e)
        {
            Form4 frm2 = new Form4();

            frm2.ShowDialog();
        }
Ejemplo n.º 6
0
        private void button1_Click(object sender, EventArgs e)
        {
            Form4 f4 = new Form4();

            f4.Show();
        }
Ejemplo n.º 7
0
 private void RECIPIENT_Click(object sender, EventArgs e)
 {
     Form4 f = new Form4();
     f.Show();
     Hide();
 }