private void button1_Click(object sender, EventArgs e) { bool isvalidresult; bool isvalidpassed; localhost.Service1 d = new localhost.Service1(); d.isvalid(textBox1.Text, textBox2.Text, out isvalidresult, out isvalidpassed); if (isvalidresult) { MessageBox.Show(" Valid user"); } else { MessageBox.Show("invalid user"); } }
private void button1_Click(object sender, EventArgs e) { localhost.Service1 v = new localhost.Service1(); v.register(textBox1.Text, textBox2.Text, comboBox1.Text, textBox3.Text); MessageBox.Show("Succesfully Register"); }