public bool VerificaPassword(string user, string password, out CDCDS.USR_USERRow userRow) { userRow = null; user = user.ToUpper(); password = password.ToUpper(); using (CDCMetalBusiness bCDC = new CDCMetalBusiness()) { CDCDS ds = new CDCDS(); bCDC.LeggiUtente(ds, user); userRow = ds.USR_USER.Where(x => x.UIDUSER.Trim() == user).FirstOrDefault(); if (userRow == null) { return(false); } if (userRow.PWDUSER.ToUpper() == password) { return(true); } return(false); } }
private void btnCancel_Click(object sender, EventArgs e) { _user = null; DialogResult = DialogResult.Cancel; }