private void lowLevelEditPolicyToolStripMenuItem_Click(object sender, EventArgs e) { if (TVPolicies.SelectedNode == null) { return; } Int64 SelPol = Convert.ToInt64(TVPolicies.SelectedNode.Name); PolicyObject obj = Program.net.GetPolicyObject(SelPol); if (obj == null) { return; } frmLowLevelEdit frm = new frmLowLevelEdit(obj); frm.ShowDialog(this); }
private void lowLevelEditPolicyToolStripMenuItem_Click(object sender, EventArgs e) { bool valid = false; Int64?PolID = GroupFolders.GetSelectedPolicyID(treeAction.SelectedNode, out valid); if (valid == false) { policyEnabledToolStripMenuItem.Enabled = false; } else { PolicyObject obj = Program.net.GetPolicyObject(PolID.Value); if (obj == null) { return; } frmLowLevelEdit frm = new frmLowLevelEdit(obj); frm.ShowDialog(this); } }