private void BackToRoomsB_Click(object sender, EventArgs e)
 {
     if (!mainForm.Instance.controlsContainer.Controls.ContainsKey("RoomControl"))
     {
         RoomControl room = new RoomControl();
         room.Dock = DockStyle.Fill;
         mainForm.Instance.controlsContainer.Controls.Add(room);
     }
     mainForm.Instance.controlsContainer.Controls["RoomControl"].BringToFront();
 }
Ejemplo n.º 2
0
 private void mainRoomB_Click(object sender, EventArgs e)
 {
     if (!mainForm.Instance.controlsContainer.Controls.ContainsKey("RoomControl"))
     {
         RoomControl room = new RoomControl();
         room.Dock = DockStyle.Fill;
         mainForm.Instance.controlsContainer.Controls.Add(room);
     }
     mainForm.Instance.controlsContainer.Controls["RoomControl"].BringToFront();
     ResetButtonsColor();
     mainRoomB.BackColor = Color.Gray;
     mainRoomB.ForeColor = Color.White;
 }