public void ShowProperties() { TreeNode treeNode = tvwNodes.SelectedNode; if (treeNode.Tag is object node) { frmDetails frm = new frmDetails(node); frm.ShowDialog(); } }
private void propertiesToolStripMenuItem_Click(object sender, EventArgs e) { TreeNode treeNode = tvwNodes.SelectedNode; if (treeNode.Tag is object node) { frmDetails frm = new frmDetails(node); frm.ShowDialog(); } }