示例#1
0
 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 + ", ";
     }
 }
示例#2
0
        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));
            }
        }