private void btnShowAll_Click(object sender, EventArgs e) { activeBar.Height = btnShowAll.Height - 1; activeBar.Top = btnShowAll.Top; if (!home.Instance.PnlLeft.Controls.ContainsKey("controlShowAll")) { controlShowAll showAll = new controlShowAll(); showAll.Dock = DockStyle.Fill; home.Instance.PnlContainer.Controls.Add(showAll); } home.Instance.PnlContainer.Controls["controlShowAll"].BringToFront(); }
private void btnShowAll_Click(object sender, EventArgs e) { /* Active button of the main menu set as the SHOW ALL button */ activeBar.Height = btnShowAll.Height - 1; activeBar.Top = btnShowAll.Top; /* Add Content SHOW ALL in MAIN BOX */ if (!home.Instance.PnlLeft.Controls.ContainsKey("controlShowAll")) { controlShowAll showAll = new controlShowAll(); showAll.Dock = DockStyle.Fill; home.Instance.PnlContainer.Controls.Add(showAll); } home.Instance.PnlContainer.Controls["controlShowAll"].BringToFront(); }