예제 #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();
            }
        }
예제 #2
0
        private void PassWordBtn_Click(object sender, EventArgs e)
        {
            if (Product.Inst.OperiterLevel <= 0)
            {
                return;
            }
            ChangeUserPwd pwd = new ChangeUserPwd();

            pwd.SetUser(CurrentUser);
            pwd.Show();
        }
예제 #3
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();
            }
        }
예제 #4
0
        /// <summary>
        /// 重置用户密码
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button5_Click(object sender, EventArgs e)
        {
            ChangeUserPwd changeUserPwd = new ChangeUserPwd();

            changeUserPwd.ShowDialog();
        }