private void materialSideDrawer3_onSideDrawerItemClicked(object sender, MaterialSideDrawer.SideDrawerEventArgs e) { if (materialTabControl1.TabPages.ContainsKey(e.getClickedItem())) { materialTabControl1.SelectTab(e.getClickedItem()); } else { materialTabControl1.TabPages.Add(new MaterialTabPage(e.getClickedItem(), true)); materialTabControl1.SelectedTab = materialTabControl1.TabPages[materialTabControl1.TabCount - 1]; } }
private void SettingsDrawer_onSideDrawerItemClicked(object sender, MaterialSideDrawer.SideDrawerEventArgs e) { pnl_SettingsView.Controls.Clear(); pnl_SettingsView.Controls.Add((UserControl)e.getTag()); }