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!"); } }
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"); } }
private void cmdLogin_Click(object sender, EventArgs e) { Server.Service1 server = new Server.Service1(); server.registration(txtUsername.Text, txtPassword.Text); MessageBox.Show("User Registered!"); }