Exemplo n.º 1
0
 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];
     }
 }
Exemplo n.º 2
0
 private void SettingsDrawer_onSideDrawerItemClicked(object sender, MaterialSideDrawer.SideDrawerEventArgs e)
 {
     pnl_SettingsView.Controls.Clear();
     pnl_SettingsView.Controls.Add((UserControl)e.getTag());
 }