Esempio n. 1
0
        private void 修改密码ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ChangeUserPwd frm_ChangePwd = new ChangeUserPwd();

            frm_ChangePwd.SetUser(CurrentUser);
            if (DialogResult.OK == frm_ChangePwd.ShowDialog(this))
            {
                CurrentUser = frm_ChangePwd.GetCurrentUser();
            }
        }
Esempio n. 2
0
        private void 修改密码ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (toolStripButton7.Text != "厂家")
            {
                MessageBox.Show("您当前没有权限进行修改密码操作", "提示");
                return;
            }
            ChangeUserPwd frm_ChangePwd = new ChangeUserPwd();

            frm_ChangePwd.SetUser(CurrentUser);
            if (DialogResult.OK == frm_ChangePwd.ShowDialog(this))
            {
                CurrentUser = frm_ChangePwd.GetCurrentUser();
            }
        }