コード例 #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (dataGridView1.CurrentRow.DataBoundItem is Pizza p)
     {
         var client = new ServiceReference1.PizzaServiceClient();
         label1.Text = client.Bestelle(p).ToString();
     }
 }
コード例 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            var client = new ServiceReference1.PizzaServiceClient();

            dataGridView1.DataSource = client.GetListe();
        }