private void btnTambah_Click(object sender, EventArgs e) { FrmKasTambah frm = new FrmKasTambah(); if (frm.ShowDialog() == DialogResult.Yes) { isiGrid(); } }
private void btnUbah_Click(object sender, EventArgs e) { if (dgv.Rows.Count == 0) { H.msgError("Belum ada data yang dipilih"); return; } H.IdEdit = H.GetSelAt(dgv, 1); FrmKasTambah frm = new FrmKasTambah(); frm.editState = true; if (frm.ShowDialog() == DialogResult.Yes) { isiGrid(); } }