private void btnEkle_Click(object sender, EventArgs e) { FrmStokIslem frm = new FrmStokIslem(new Entities.Tables.Stok()); frm.ShowDialog(); if (frm.saved) { GetAll(); } }
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(); } }
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(); } }