Example #1
0
        private void IndigoClientButton_Click(object sender, EventArgs e)
        {
            // TODO: Create a MSBuilsd Task to automatically generate CatalogServiceContractClient with 'svcutil.exe'.

            using (CatalogServiceContractClient client = new CatalogServiceContractClient())
            {
                // TODO: Implement real error handling here.
                try
                {
                    this.IndigoClientResponseTextBox.Text = client.GetBookByIsbn(this.IndigoClientRequestTextBox.Text);
                }
                catch (Exception error)
                {
                    MessageBox.Show(String.Format("Exception caught: {0}", error.Message));
                }
            }
        }
        private void IndigoClientButton_Click(object sender, EventArgs e)
        {
            // TODO: Create a MSBuilsd Task to automatically generate CatalogServiceContractClient with 'svcutil.exe'.

            using (CatalogServiceContractClient client = new CatalogServiceContractClient())
            {
                // TODO: Implement real error handling here.
                try
                {
                    this.IndigoClientResponseTextBox.Text = client.GetBookByIsbn(this.IndigoClientRequestTextBox.Text);
                }
                catch (Exception error)
                {
                    MessageBox.Show(String.Format("Exception caught: {0}", error.Message));
                }
            }
        }