Ejemplo n.º 1
0
        public bool TryLogin(string username, string password)
        {
            string decryptedstring = StringCipher.Decrypt(db.GetStringValue("select password from login where UserName='******'"), username);

            if (decryptedstring == password)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 2
0
 private void comboxPname_SelectedIndexChanged(object sender, EventArgs e)
 {
     name        = comboxPname.Text;
     txtpid.Text = db.GetStringValue("Select Patient_ID from Patient_Details where Patient_Name='" + name + "';");
 }