Esempio n. 1
0
        private void cmdRegistration_Click(object sender, EventArgs e)
        {
            Server.Service1 server = new Server.Service1();
            bool            isvalid;
            bool            isvalidPassed;

            Server.isvalid(txtUsername.Text, txtPassword.Text, out isvalid, out isvalidPassed);
            if (isvalid)
            {
                MessageBox.Show("valid user!");
            }
            else
            {
                MessageBox.Show("invalid user!");
            }
        }
Esempio n. 2
0
        private void cmdOK_Click(object sender, EventArgs e)
        {
            Server.Service1 server = new Server.Service1();
            bool            isvalid;
            bool            isvalidPassed;

            Server.reset(txtUsername.Text, txtPassword.Text, out isvalid, out isvalidPassed);
            if (reset)
            {
                if (txtPassword != txtConfirmpassword)
                {
                    MessageBox.Show("password mismatch");
                }
                else
                {
                    MessageBox.Show("Password match");
                }
            }
            else
            {
                MessageBox.Show("user not found");
            }
        }
Esempio n. 3
0
 private void cmdLogin_Click(object sender, EventArgs e)
 {
     Server.Service1 server = new Server.Service1();
     server.registration(txtUsername.Text, txtPassword.Text);
     MessageBox.Show("User Registered!");
 }