private void Urunler_Form_Load(object sender, EventArgs e) { UrunBL urunGoster = new UrunBL(); dt = urunGoster.Urun_Tablo(); dgv1.DataSource = dt; urunGoster.Dispose(); }
private void Yenilebtn_Click(object sender, EventArgs e) { UrunBL urunGoster = new UrunBL(); //tekrar datasource ye attık dt = urunGoster.Urun_Tablo(); dgv1.DataSource = dt; urunGoster.Dispose(); Temizle(); }
private void Satis_Form_Load(object sender, EventArgs e) { txtSatisTarih.Text = DateTime.Now.ToString(); UrunBL urunGoster = new UrunBL(); //ürünleri listele dt = urunGoster.Urun_Tablo(); dgvUrunTablo.DataSource = dt; MusteriBL musteriGoster = new MusteriBL();//müşteri listele dt = musteriGoster.Musteri_Tablo(); dgvMusteriTablo.DataSource = dt; PersonelBL personelGoster = new PersonelBL();//personel listele dt = personelGoster.Personel_ad_goster(); dgvPersonelTablo.DataSource = dt; }