private void reservationB_Click(object sender, EventArgs e)
 {
     if (!mainForm.Instance.controlsContainer.Controls.ContainsKey("ReservationControl"))
     {
         ReservationControl reservation = new ReservationControl();
         reservation.Dock = DockStyle.Fill;
         mainForm.Instance.controlsContainer.Controls.Add(reservation);
     }
     mainForm.Instance.controlsContainer.Controls["ReservationControl"].BringToFront();
 }
Exemple #2
0
 private void mainResB_Click(object sender, EventArgs e)
 {
     if (!mainForm.Instance.controlsContainer.Controls.ContainsKey("ReservationControl"))
     {
         ReservationControl reservation = new ReservationControl();
         reservation.Dock = DockStyle.Fill;
         mainForm.Instance.controlsContainer.Controls.Add(reservation);
     }
     mainForm.Instance.controlsContainer.Controls["ReservationControl"].BringToFront();
     ResetButtonsColor();
     mainResB.BackColor = Color.Gray;
     mainResB.ForeColor = Color.White;
 }