Exemplo n.º 1
0
        private void btnLock_Click(object sender, EventArgs e)
        {
            frmChangeUser frm = new frmChangeUser();

            if (frm.ShowDialog() != DialogResult.OK)
            {
                this.Dispose();
            }
            else
            {
                this.lblCurrentUser.Text = "营业员:" + Util.UserName;
            }
        }
Exemplo n.º 2
0
        private void EditCollectCamp_Click(object sender, EventArgs e)
        {
            frmChangeUser frm = new frmChangeUser();

            if (frm.ShowDialog() != DialogResult.OK)
            {
                this.Dispose();
            }
            else
            {
                frmMain frmmain = (frmMain)this.ParentForm;
                if (frmmain.CheckChildFrmExist("EditCollectCamp") == true)
                {
                    return;
                }
                EditCollectCamp newFrm = new EditCollectCamp();
                if (newFrm != null && !frmmain.ShowMDIChild(newFrm, newFrm))
                {
                    newFrm.Dispose();
                    newFrm = null;
                }
                //this.lblCurrentUser.Text = "营业员:" + Util.UserName;
            }
        }