コード例 #1
0
        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();
            }
        }
コード例 #2
0
        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);
                }
            }
        }