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"); } }
public frmResetPassword() { InitializeComponent(); user = new SystemUser(); }