private void LogOutS_btn_Click(object sender, EventArgs e)
        {
            SignOrLog_frm signin = new SignOrLog_frm();

            signin.Show();
            SignOrLog_frm.isEmp = true;
            this.Hide();
        }
Example #2
0
        private void LogOutE_btn_Click(object sender, EventArgs e)
        {
            //this.refToMain.Show();
            SignOrLog_frm SignIn = new SignOrLog_frm();

            SignIn.Show();
            SignOrLog_frm.isEmp = false;
            this.Hide();
        }
        private void Delete_btn_Click(object sender, EventArgs e)
        {
            OracleCommand c = new OracleCommand();

            c.Connection  = con;
            c.CommandText = "deleteAccount";
            c.CommandType = CommandType.StoredProcedure;
            c.Parameters.Add("ussn", ssn);
            c.ExecuteNonQuery();
            MessageBox.Show("Account Deleted");

            SignOrLog_frm signin = new SignOrLog_frm();

            signin.Show();
            SignOrLog_frm.isEmp = true;
            this.Hide();
        }