private void cmdRegister(object sender, EventArgs e) { localhost.Service1 s = new localhost.Service1(); if (textBox1.Text == "" || textBox2.Text == "") { MessageBox.Show("Incomplete"); } else { s.registerUser(textBox1.Text, textBox2.Text); MessageBox.Show("User has been Regisrered Successfully"); textBox1.Text = ""; textBox2.Text = ""; } }
private void cmdLogin(object sender, EventArgs e) { bool isvalid; bool isvalidpassed; localhost.Service1 s = new localhost.Service1(); s.isValidUser(textBox1.Text, textBox2.Text, out isvalid, out isvalidpassed); if (isvalid) { MessageBox.Show("Valid User"); } else { MessageBox.Show("Invalid User"); } }