private void button3_Click(object sender, EventArgs e) { if (txtcproblem.Text == "Enter Problem" || txtcdevice.Text == "Enter Device") { MessageBox.Show("Enter Problem and Device first!"); } else { Myserver.Service1 server = new Myserver.Service1(); bool done; bool pass; Myserver.client edi = new Myserver.client(); edi = Utility.curr_login_client; edi.Device = txtcdevice.Text; edi.Problem = txtcproblem.Text; Utility.curr_login_client = edi; server.Assign_client(Utility.curr_login_client, out done, out pass); if (done == true) { MessageBox.Show("Your Request has been sent!"); } else { MessageBox.Show("System Failure!"); } } /*Myserver.client c = new Myserver.client(); * Myserver.Service1 server = new Myserver.Service1(); * List<Myserver.client> list = server.Get_clients_list().ToList<Myserver.client>();*/ }