Ejemplo n.º 1
0
        private void back_Click(object sender, EventArgs e)
        {
            AccountPage oform = new AccountPage();

            oform.Show();
            this.Hide();
        }
        private void button1_Click_1(object sender, EventArgs e)
        {
            connection CN = new connection();

            CN.thisConnection.Open();
            OracleCommand thisCommand = new OracleCommand();

            thisCommand.Connection  = CN.thisConnection;
            thisCommand.CommandText = "SELECT * FROM HOSPITAL_LOGIN WHERE username='******' AND password='******'";
            thisReader = thisCommand.ExecuteReader();
            if (thisReader.Read())
            {
                AccountPage oform = new AccountPage();
                oform.Show();
                this.Hide();
            }
        }