コード例 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Proxy.ProductsServiceClient Proxy = new
                                                Proxy.ProductsServiceClient("HTTP_EndPoint");
            int prodID     = 1;
            int stockLevel = Proxy.GetStockLevel(prodID);

            MessageBox.Show(stockLevel.ToString());
        }
コード例 #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     Proxy.ProductsServiceClient Proxy = new
                                         Proxy.ProductsServiceClient("HTTP_EndPoint");
     dataGridView1.DataSource = Proxy.GetProductsList();
 }