Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        private void buttonAdd_Click(object sender, EventArgs e)
        {
            MatchFieldNode currentNode = GetCurrentFieldNode();

            if (currentNode == null)
            {
                MessageBox.Show("please select the join node which you want to add criterias. ", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            FConfigCriteria frm = new FConfigCriteria();

            frm.SaveCriteria += new SaveCondidtionEventHandler(EditCriteria);

            frm.ShowDialog(this);
        }