private void TreeControl_OnTreeContextMenuEvent(object sender, TreeContextMenuSelectEventArgs e) { List <ToolStripItem> menuItemList = new List <ToolStripItem>(); MakeContextMenu(menuItemList, e.SelectedNode, e.SelectedNode.Tag, null);//todo aspectName e.MenuItemList.AddRange(menuItemList); }
private void TreeControl_OnTreeContextMenuEvent(object sender, TreeContextMenuSelectEventArgs e) { try { List <ToolStripItem> menuItemList = new List <ToolStripItem>(); MakeContextMenu(menuItemList, e.SelectedNode, (e.SelectedNode.Tag is TreeObjectWrap) ? (e.SelectedNode.Tag as TreeObjectWrap).Tag : e.SelectedNode.Tag, null);//todo aspectName e.MenuItemList.AddRange(menuItemList); } catch (Exception ex) { Log.ShowError(ex); } }