private void btnKaydet_Click(object sender, EventArgs e) { NetSatisContext context = new NetSatisContext(); StokDal stokDal = new StokDal(); if (stokDal.AddorUpdate(context, _entity)) { stokDal.Save(context); saved = true; this.Close(); } }
private void btnEkle_Click(object sender, EventArgs e) { FrmStokSec form = new FrmStokSec(true); form.ShowDialog(); if (form.secildi) { foreach (var itemStok in form.secilen) { stokDal.AddorUpdate(context, itemStok); } } }