private void btnCallService_Click(object sender, EventArgs e) { localhost.BookFinderServiceClient client = new localhost.BookFinderServiceClient(); lblBookinfo.Text = string.Empty; foreach (string Title in client.GetBookList()) { lblBookinfo.Text += Title + ", "; } }
private void btnGetComplete_Click(object sender, EventArgs e) { lbxResults.Items.Clear(); foreach (localhost.Book b in client.GetBookList(txtSort.Text)) { lbxResults.Items.Add(client.ToBookString(b)); } }