Exemplo n.º 1
0
        private void btDeleteAdmin_Click(object sender, EventArgs e)
        {
            DeleteAdmin del = new Hotel.DeleteAdmin();

            if (del.ShowDialog(this) == DialogResult.OK)
            {
                dgvAdmin_Load();
            }
        }
Exemplo n.º 2
0
        private void btAdminDel_Click(object sender, EventArgs e)
        {
            DeleteAdmin del = new Hotel.DeleteAdmin();

            del.tbAdminID.Text     = Common.StaticClass.choose1;
            del.tbAdminPasswd.Text = Common.StaticClass.choose2;
            if (del.ShowDialog(this) == DialogResult.OK)
            {
                this.DialogResult = DialogResult.OK;
            }
            this.Hide();
        }