public void OnSelect(NodeSelectEventArgs args) { var selectedId = args.NodeData.Id; SelectedTagonomyNode = TagonomyNav.FirstOrDefault(it => it.Id == selectedId)?.Node; SelectedItem = PreCreateView(null, SelectedTagonomyNode); }
private void pineappleTreeView_NodeSelect(object sender, NodeSelectEventArgs e) { ItemDescriptor descriptor = e.Node.Tag as ItemDescriptor; tbtnOpenInTree.Enabled = descriptor != null && descriptor.Renamed != null; tbtnOpenInVS.Enabled = descriptor != null && descriptor.Filename != null; }
private void ptvElements_NodeSelect(object sender, NodeSelectEventArgs e) { focusedItem = null; if (e.Node != null && e.Node.Selected) { focusedItem = e.Node.Tag as RenamedBase; } EnableSelectionActions(focusedItem != null); slblSelected.Text = focusedItem == null ? "" : focusedItem.TransformSimple; commandManager.SetEnabled(Actions.OpenInEditor, focusedItem != null && DetectMarkersForVS(out focusedFilename, out focusedLine, focusedItem)); }