Beispiel #1
0
 void EventSink_NodeSelected(NodeSelectedEventArgs evtArgs)
 {
     if (evtArgs.Node is PathNode && ((PathNode)evtArgs.Node).Labels.Count > 0)
     {
         propertyGrid1.SelectedObject = ((PathNode)evtArgs.Node).Labels[0];
     }
 }
Beispiel #2
0
        private void TreeTea_NodeSelected(object sender, NodeSelectedEventArgs e)
        {
            //get the most recently selected node
            var lastSelectedNode = e.RecentlySelectedNode;

            //get a list of all currently selected nodes
            var allCurrentlySelectedNodes = e.AllSelectedNodes;
        }
Beispiel #3
0
 /// <summary>
 /// Attaches 'slide' to the main canvas. Sets 'slide' as the current slide.
 /// </summary>
 private void OnSlideSelected(object sender, NodeSelectedEventArgs e)
 {
     Verify.True(cvsMain.Children.OfType <SlideView>().Count() == 0,
                 "Cannot select a new slide while a slide is currently attached.");
     cvsMain.Children.Add(e.Node);
     Canvas.SetTop(e.Node, 1);
     Canvas.SetLeft(e.Node, 1);
     e.Node.Width  = cvsMain.ActualWidth;
     e.Node.Height = cvsMain.ActualHeight;
 }
        private void Tv_ContextMenuRequested(object sender, NodeSelectedEventArgs e)
        {
            if (e.Node is FolderNode fn)
            {
                DisplayContextMenuStripItems(false);

                tsmiCollapse.Enabled = e.Node.IsExpanded;
                tsmiExpand.Enabled   = !e.Node.IsExpanded;

                contextFolderNode = fn;
            }
            else if (e.Node is WebresourceNode wn)
            {
                DisplayContextMenuStripItems(true);
                contextStripResource = wn.Resource;
            }

            cmsWebresourceTreeview.Tag = e.Node;
            cmsWebresourceTreeview.Show(tv, new Point(e.Location.X, e.Location.Y + 20));
        }
Beispiel #5
0
 void EventSink_NodeSelected(NodeSelectedEventArgs evtArgs)
 {
     listBox1.Items.Add("\nNodeSelected event Fired.\n");
 }
Beispiel #6
0
 public void OnNodeSelected(object sender, NodeSelectedEventArgs e)
 {
     propertyGrid.SelectedObject = e.Node.Model;
 }
Beispiel #7
0
 private void OnSlideSelected(object sender, NodeSelectedEventArgs e)
 {
     _triggeredFlags.SlideSelected = true;
 }
Beispiel #8
0
 private void advancedParameterGroupSelected(NodeSelectedEventArgs e)
 {
     _view.RemoveEnabled = false;
     _advancedParameterPresenter.RemoveSelection();
 }