Beispiel #1
0
        /// <summary>
        /// Customize the context menu
        /// </summary>
        private void tree_AfterSelect(Object sender, TreeViewEventArgs e)
        {
            menu.Configure(tree.SelectedNodes);
            // notify other plugins of tree nodes selection - ourben@fdc
            DataEvent de = new DataEvent(EventType.Command, ProjectManagerEvents.TreeSelectionChanged, tree.SelectedNodes);

            EventManager.DispatchEvent(sender, de);
        }
Beispiel #2
0
        /// <summary>
        /// Customize the context menu
        /// </summary>
        private void tree_AfterSelect(Object sender, TreeViewEventArgs e)
        {
            if (tree.SelectedNodes.Count == 0)
            {
                return;
            }
            Project project = Tree.ProjectOf(tree.SelectedNodes[0] as GenericNode);

            menu.Configure(tree.SelectedNodes, project);
            // notify other plugins of tree nodes selection - ourben@fdc
            DataEvent de = new DataEvent(EventType.Command, ProjectManagerEvents.TreeSelectionChanged, tree.SelectedNodes);

            EventManager.DispatchEvent(tree, de);
        }
 void tree_AfterSelect(object sender, TreeViewEventArgs e)
 {
     menu.Configure(tree.SelectedNodes);
 }