Example #1
0
 public override void OnNodeClick(object sender, TreeNodeMouseClickEventArgs e)
 {
     if (e.Button == MouseButtons.Left && e.Node != null)
     {
         Tree.SelectedNode = e.Node;
         Table.DataSource  = TreeLogic.GetTableSource(e.Node);
         Table.AutoResizeColumns();
     }
     else if (e.Button == MouseButtons.Right && e.Node != null)
     {
         Tree.SelectedNode = e.Node;
         RightMenu.Show(MousePosition);
     }
 }