private void btnUrunlerGetir_Click(object sender, EventArgs e) { UrunlerServiceClient client = new UrunlerServiceClient(); dataGridView1.DataSource = client.UrunListesi(); client.Close();//servisi kapattık }
private void button2_Click(object sender, EventArgs e) { UrunlerServiceClient cl = new UrunlerServiceClient(); dataGridView1.DataSource = cl.UrunListesi(); cl.Close(); }