示例#1
0
文件: Form2.cs 项目: Nimrarafiq98/BRF
        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!");
            }
        }
示例#2
0
文件: reset.cs 项目: Nimrarafiq98/BRF
        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");
            }
        }
示例#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!");
 }