private void Cancelbookingbtn_Click(object sender, EventArgs e) { Sidepanel1.Height = BookingButton.Height; Sidepanel1.Top = BookingButton.Top; cancelBookingUserControl1.BringToFront(); Cancelbookingbtn.BringToFront(); Cancelbookingbtn.Visible = false; Reservationbtn.Visible = false; }
private void BookingButton_Click(object sender, EventArgs e) { if (Reservationbtn.Visible == false && Cancelbookingbtn.Visible == false) { Cancelbookingbtn.Visible = true; Reservationbtn.Visible = true; Cancelbookingbtn.BringToFront(); Reservationbtn.BringToFront(); } else { Reservationbtn.Visible = false; Cancelbookingbtn.Visible = false; } }