예제 #1
0
 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;
 }
예제 #2
0
 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;
     }
 }