public PropertiesToolStripMenuItem(PropertiesCommand cmd) : base(cmd, Messages.EDIT, Images.StaticImages.edit_16) { }
private void treeView_KeyUp(object sender, KeyEventArgs e) { switch (e.KeyCode) { case Keys.Apps: if (treeView.SelectedNode != null) { treeView.SelectedNode.EnsureVisible(); HandleNodeRightClick(new VirtualTreeNodeMouseClickEventArgs(treeView.SelectedNode, MouseButtons.Right, 1, treeView.SelectedNode.Bounds.X, treeView.SelectedNode.Bounds.Y + treeView.SelectedNode.Bounds.Height)); } break; case Keys.F2: var cmd = new PropertiesCommand(Program.MainWindow, Program.MainWindow.SelectionManager.Selection); if (cmd.CanExecute()) cmd.Execute(); break; } }