private void btnDelete_Click(object sender, EventArgs e) { fDeleteRoom _deleteRoom = new fDeleteRoom(this); this.Hide(); _deleteRoom.ShowDialog(); this.Show(); }
private void btnDelete_Click(object sender, EventArgs e) { if (AccountManagementDAO.Instance.checkShowForm(getGroupCode(), "fDeleteRoom") == true) { fDeleteRoom f = new fDeleteRoom(this); this.Hide(); f.ShowDialog(); this.Show(); } else { MessageBox.Show("Bạn không có quyền truy cập"); } }