private void btnTambah_Click(object sender, EventArgs e) { FrmTambahUser f = new FrmTambahUser(); if (f.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); FrmTambahUser frm = new FrmTambahUser(); frm.editState = true; if (frm.ShowDialog() == DialogResult.Yes) { isiGrid(); } }