private void EditTreeNode() { TreeNode node = this.treeViewCriteria.SelectedNode; if (null == node) { MessageBox.Show("please select the node which you want to edit. ", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } MatchField f = node.Tag as MatchField; if (f != null) { FConfigCriteria frm = new FConfigCriteria(); frm.SaveCriteria += new SaveCondidtionEventHandler(EditCriteria); frm.ShowDialog(this, f); return; } FConfigJoinNode frmNode = new FConfigJoinNode(); frmNode.SaveNode += new SaveNodeEventHandler(EditJoinNode); frmNode.ShowDialog(this, node.Tag as MatchFieldNode); }
private void buttonAddJoinNode_Click(object sender, EventArgs e) { if (this.treeViewCriteria.SelectedNode != null && this.treeViewCriteria.SelectedNode.Tag is MatchField) { MessageBox.Show("You can not add join node as child of the criteria node.", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } FConfigJoinNode frm = new FConfigJoinNode(); frm.SaveNode += new SaveNodeEventHandler(EditJoinNode); frm.ShowDialog(this); }