private void btnKiralamaSil_Click(object sender, EventArgs e) { using (var kiralamaSoapClient = new KiralamaWebServiceSoapClient()) { dgwKiralamaListesi.DataSource = kiralamaSoapClient.SelectAllKiralamas(); } }
private void frm_KiralamaGoruntule_Load(object sender, EventArgs e) { using (var kiralamaSoapClient = new KiralamaWebServiceSoapClient()) { dgwKiralamaListesi.DataSource = kiralamaSoapClient.SelectAllKiralamas(); } }