public void selectPanel(selectorEnum e) { this.lektoriPanel.Visible = false; this.kontaktyPanel.Visible = false; this.krouzkyPanel.Visible = false; this.skolyPanel.Visible = false; switch (e) { case selectorEnum.Lektori: this.lektoriPanel.Visible = true; break; case selectorEnum.Krouzky: this.krouzkyPanel.Visible = true; break; case selectorEnum.Skoly: this.skolyPanel.Visible = true; break; case selectorEnum.Kontakty: this.kontaktyPanel.Visible = true; break; default: throw new ArgumentOutOfRangeException(nameof(e), e, null); } }
public void selectBtn(selectorEnum e) { this.lektoriBtn.BackColor = UnSelectedBtnColor; this.krouzkyBtn.BackColor = UnSelectedBtnColor; this.skolyBtn.BackColor = UnSelectedBtnColor; this.kontaktyBtn.BackColor = UnSelectedBtnColor; switch (e) { case selectorEnum.Lektori: this.lektoriBtn.BackColor = SelectedBtnColor; break; case selectorEnum.Krouzky: this.krouzkyBtn.BackColor = SelectedBtnColor; break; case selectorEnum.Skoly: this.skolyBtn.BackColor = SelectedBtnColor; break; case selectorEnum.Kontakty: this.kontaktyBtn.BackColor = SelectedBtnColor; break; default: throw new ArgumentOutOfRangeException(nameof(e), e, null); } }
public void select(selectorEnum e) { this.selected_ = e; this.selectBtn(e); this.selectPanel(e); this.populate(); }