private void createpolicyToolStripMenuItem_Click(object sender, EventArgs e) { frmCreatePolicy frm = new frmCreatePolicy(MID, null); if (frm.ShowDialog(this) == System.Windows.Forms.DialogResult.OK) { LoadPolicies(); } }
private void createpolicyToolStripMenuItem_Click(object sender, EventArgs e) { bool valid; Int64?ID = GroupFolders.GetSelectedGroupID(treeAction.SelectedNode, out valid); if (valid == false) { return; } frmCreatePolicy frm = new frmCreatePolicy(null, ID); if (frm.ShowDialog(this) == System.Windows.Forms.DialogResult.OK) { GroupFolders.UpdateTreeNode(treeAction.SelectedNode, true); } }