private void treeView_iRules_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e) { TreeNode tn = getCurrentItem(); if (null != tn.Tag) { iRuleInfoDialog dlg = new iRuleInfoDialog(); dlg.m_tn = tn; DialogResult dr = dlg.ShowDialog(); if (dr == DialogResult.OK) { DoSaveConfiguration(false); } } }
private void toolStripMenuItem_Properties_Click(object sender, EventArgs e) { TreeNode tn = getCurrentItem(); if (null != tn.Tag) { iRuleInfoDialog dlg = new iRuleInfoDialog(); dlg.m_tn = getCurrentItem(); DialogResult dr = dlg.ShowDialog(); if (dr == DialogResult.OK) { DoSaveConfiguration(false); } } }