Exemplo n.º 1
0
        private void btnEkle_Click(object sender, EventArgs e)
        {
            FrmStokIslem frm = new FrmStokIslem(new Entities.Tables.Stok());

            frm.ShowDialog();
            if (frm.saved)
            {
                GetAll();
            }
        }
Exemplo n.º 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();
            }
        }
Exemplo n.º 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();
            }
        }