private void btnKaydet_Click(object sender, EventArgs e) { stokdal.AddOrUpdate(context, _entity); stokdal.save(context); this.Close(); }
private void simpleButton1_Click(object sender, EventArgs e) { FrmStokSec sec = new FrmStokSec(); sec.ShowDialog(); if (sec.secildi) { foreach (var itemStok in sec.secilen) { stokdal.AddOrUpdate(context, itemStok); } } }