Пример #1
0
        private void btnOkay_Click(object sender, EventArgs e)
        {
            this.Dispose();
            FrmAdminMenu frmMenu = new FrmAdminMenu();

            frmMenu.Show();
        }
Пример #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            this.Dispose();
            FrmAdminMenu frmAM = new FrmAdminMenu();

            frmAM.Show();
        }
Пример #3
0
        private void button2_Click(object sender, EventArgs e)
        {
            this.Hide();
            FrmAdminMenu frm7 = new FrmAdminMenu();

            frm7.Show();
        }
Пример #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.Dispose();
            FrmAdminMenu Am = new FrmAdminMenu();

            Am.Show();
        }
Пример #5
0
        private void btnOkay_Click(object sender, EventArgs e)
        {
            this.Hide();
            FrmAdminMenu AdminMenu = new FrmAdminMenu();

            AdminMenu.Show();
        }
Пример #6
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            string sql = @"Select * from tblAdmin where Username like '" + txtUsername.Text + "' and Password like '" + txtPassword.Text + "'";

            cm = new SqlCommand(sql, cn);
            dr = cm.ExecuteReader();
            dr.Read();

            if (dr.HasRows)
            {
                FrmAdminMenu frm7 = new FrmAdminMenu();
                frm7.pass(txtUsername.Text);
                frm7.Show();
                this.Hide();
                dr.Close();
                InsertTrail();
                dr.Close();
                MessageBox.Show("Welcome Admin :)");
            }

            else
            {
                MessageBox.Show("Access Denied! ", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Stop);
            }
        }
Пример #7
0
        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Dispose();
            FrmAdminMenu frmAD = new FrmAdminMenu();

            frmAD.Show();
        }