private void devirGirişiToolStripMenuItem_Click(object sender, EventArgs e) { int i = gridView1.FocusedRowHandle; DataRow dr = gridView1.GetDataRow(i); frmBankaBakiyeDuzeltme KasaBakiyeDuzeltme = new frmBankaBakiyeDuzeltme(); KasaBakiyeDuzeltme.pkKasalar.Text = dr["pkBankalar"].ToString(); KasaBakiyeDuzeltme.ceKasadakiParaMevcut.Value = Decimal.Parse(dr["Bakiye"].ToString()); KasaBakiyeDuzeltme.ShowDialog(); bankalarigetir(); }
private void kasaDevirBakiyeToolStripMenuItem_Click(object sender, EventArgs e) { int i = gridView2.FocusedRowHandle; if (i < 0) { return; } DataRow dr = gridView2.GetDataRow(i); frmBankaBakiyeDuzeltme KasaBakiyeDuzeltme = new frmBankaBakiyeDuzeltme(); KasaBakiyeDuzeltme.pkKasalar.Text = dr["pkBankalar"].ToString(); KasaBakiyeDuzeltme.ceKasadakiParaMevcut.Value = Decimal.Parse(dr["Bakiye"].ToString()); KasaBakiyeDuzeltme.ShowDialog(); btnListele_Click(sender, e); }