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(); } }
private void button1_Click(object sender, EventArgs e) { var client = new ServiceReference1.PizzaServiceClient(); dataGridView1.DataSource = client.GetListe(); }