示例#1
0
        private void btnEkle_Click(object sender, EventArgs e)
        {
            FrmStokIslem frm = new FrmStokIslem(new Entities.Tables.Stok());

            frm.ShowDialog();
            if (frm.saved)
            {
                GetAll();
            }
        }
示例#2
0
        private void btnDuzenle_Click(object sender, EventArgs e)
        {
            secilen = gridView1.GetFocusedRowCellValue(colStokKodu).ToString();
            FrmStokIslem frm = new FrmStokIslem(_stokDAL.GetByFilter(context, s => s.StokKodu == secilen));

            frm.ShowDialog();
            if (frm.saved)
            {
                GetAll();
            }
        }
示例#3
0
        private void btnKopyala_Click(object sender, EventArgs e)
        {
            secilen = gridView1.GetFocusedRowCellValue(colStokKodu).ToString();
            Entities.Tables.Stok _stokEntity = new Entities.Tables.Stok();

            _stokEntity    = _stokDAL.GetByFilter(context, s => s.StokKodu == secilen);
            _stokEntity.Id = -1;

            _stokEntity.StokKodu = null;
            FrmStokIslem frm = new FrmStokIslem(_stokEntity);

            frm.ShowDialog();
            if (frm.saved)
            {
                GetAll();
            }
        }