Esempio n. 1
0
        //修改密码
        private void toolMenuUpdatePwd_Click(object sender, EventArgs e)
        {
            FrmUpdatePwd updatePwd = new FrmUpdatePwd();
            DialogResult resulty   = updatePwd.ShowDialog();

            //密码修改成功则重新登录
            if (resulty == DialogResult.OK)
            {
                logHelpers.WriteInfo($"[{Program.CurrentAdmin.LoginId}]修改密码成功");
                this.Close();
            }
        }
Esempio n. 2
0
        private void toolMenuUpdatePwd_Click(object sender, EventArgs e)
        {
            FrmUpdatePwd pwd     = new FrmUpdatePwd();
            DialogResult Restart = pwd.ShowDialog();

            //密码修改成功,意味着需要重新登录
            if (Restart == DialogResult.OK)
            {
                LogHelper.Info($"[{Program.CurrentAdmin.LoginId}]成功修改密码");

                this.Close();//主线程关闭
                //修改密码之后重启
            }
        }