private void RentButton_Click(object sender, EventArgs e) { fRent f = new fRent(new fRoom(), this.label1.Text); this.Hide(); f.ShowDialog(); mainMenu.ReLoadRoomStatus(); mainMenu.ReLoadStatusOfRooms(); this.Reload(mainMenu.LoadRoomInfo(RoomCode), RoomCode); this.Show(); }
private void btnRent_Click(object sender, EventArgs e) { if (AccountManagementDAO.Instance.checkShowForm(getGroupCode(), "fRent") == true) { fRent _rentRoom = new fRent(this); this.Hide(); _rentRoom.ShowDialog(); this.Show(); } else { MessageBox.Show("Bạn không có quyền truy cập"); } }
private void btnRent_Click(object sender, EventArgs e) { fRent _rentRoom = new fRent(); _rentRoom.Show(); }