Ejemplo n.º 1
0
        private void txtUserName_Leave(object sender, EventArgs e)
        {
            try
            {

                IsValidUserName = false;
                if (user == null)
                    user = new SystemUser();
                if (!string.IsNullOrEmpty(txtUserName.Text))
                {
                    DataTable dt = SystemUser.SelectUser(null, txtUserName.Text, null);
                    if (dt != null && dt.Rows.Count > 0)
                    {
                        IsValidUserName = true;
                        lblFullName.Text = Convert.ToString(dt.Rows[0]["Name"]);
                    }
                }
            }
            catch (Exception ex)
            {

                ExceptionLog.LogException(Modules.SystemUsers, "Reset Password", ex, "Reset Password Exception");
            }
        }
Ejemplo n.º 2
0
 public frmResetPassword()
 {
     InitializeComponent();
     user = new SystemUser();
 }