private void btnEkle_Click_1(object sender, EventArgs e) { using (frmGiderKarti frm = new frmGiderKarti(-1, PersonelID)) { if (frm.ShowDialog() == DialogResult.Yes) { Getir(); } } }
private void btnDuzelt_Click(object sender, EventArgs e) { if (gridView1.RowCount == 0) { return; } using (frmGiderKarti frm = new frmGiderKarti(Convert.ToInt32(gridView1.GetFocusedRowCellValue("KasaHrID")), PersonelID)) { if (frm.ShowDialog() == DialogResult.Yes) { Getir(); } } }