示例#1
0
        private void cmsAdd_Click(object sender, EventArgs e)
        {
            TreeNode tn          = treeMenu.SelectedNode;
            string   _ParentCode = "00";

            if (tn != null)
            {
                _ParentCode = tn.Tag.ToString();
            }

            frmAreaEdit frmAreaEdit = new frmAreaEdit(this, frmParent.User, _ParentCode, "", 1);

            frmAreaEdit.ShowDialog();
        }
示例#2
0
        private void cmsEdit_Click(object sender, EventArgs e)
        {
            TreeNode tn     = treeMenu.SelectedNode;
            string   A_Code = "";

            if (tn == null || tn.Tag.ToString() == "00")
            {
                return;
            }
            else
            {
                A_Code = tn.Tag.ToString();
            }

            frmAreaEdit frmAreaEdit = new frmAreaEdit(this, frmParent.User, "", A_Code, 2);

            frmAreaEdit.ShowDialog();
        }