private void devirBakiyeToolStripMenuItem_Click(object sender, EventArgs e) { if (gridView1.DataRowCount == 0) { return; } int i = gridView1.FocusedRowHandle; if (i < 0) { i = gridView1.DataRowCount; i--; } DataRow dr = gridView1.GetDataRow(i); //DB.pkStokKarti = int.Parse(dr["pkStokKarti"].ToString()); frmStokDepoDevir StokDevir = new frmStokDepoDevir(); StokDevir.fkStokKarti.Tag = dr["fkStokKarti"].ToString(); StokDevir.ShowDialog(); Getir(); }
private void simpleButton2_Click(object sender, EventArgs e) { frmStokDepoDevir StokDepoDevir = new frmStokDepoDevir(); StokDepoDevir.fkStokKarti.Tag = fkStokKarti.Tag.ToString(); StokDepoDevir.ShowDialog(); StokHareket(); }
private void stokMevcutDevirToolStripMenuItem_Click(object sender, EventArgs e) { if (gridView1.FocusedRowHandle < 0) { return; } DataRow dr = gridView1.GetDataRow(gridView1.FocusedRowHandle); frmStokDepoDevir StokDepoDevir = new frmStokDepoDevir(); StokDepoDevir.fkStokKarti.Tag = dr["pkStokKarti"].ToString(); StokDepoDevir.ShowDialog(); }