private void btnduzenle_Click(object sender, EventArgs e) { string secilen = gridView1.GetFocusedRowCellValue(colStokKodu).ToString(); FrmStokIslem form = new FrmStokIslem(stokdal.GetByFilter(context, c => c.StokKodu == secilen)); form.ShowDialog(); }
private void btnkopyala_Click(object sender, EventArgs e) { int secilen = Convert.ToInt32(gridView1.GetFocusedRowCellValue(colıd)); netsatis.tables.Stok stokentity = new netsatis.tables.Stok(); stokentity = stokdal.GetByFilter(context, c => c.Id == secilen); stokentity.Id = -1; stokentity.StokKodu = null; FrmStokIslem form = new FrmStokIslem(stokentity, true); form.ShowDialog(); }
private void btnekle_Click(object sender, EventArgs e) { FrmStokIslem form = new FrmStokIslem(new Stok()); form.ShowDialog(); }