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(); } }
private void PassWordBtn_Click(object sender, EventArgs e) { if (Product.Inst.OperiterLevel <= 0) { return; } ChangeUserPwd pwd = new ChangeUserPwd(); pwd.SetUser(CurrentUser); pwd.Show(); }
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(); } }
/// <summary> /// 重置用户密码 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button5_Click(object sender, EventArgs e) { ChangeUserPwd changeUserPwd = new ChangeUserPwd(); changeUserPwd.ShowDialog(); }