private void btnTambah_Click(object sender, EventArgs e) { using (new WaitCursorHandler()) { var frm = new FrmEntryHakAkses(false); frm.Owner = this; frm.Listener = this; frm.ShowDialog(); } }
private void btnUbah_Click(object sender, EventArgs e) { using (new WaitCursorHandler()) { if (ObjectIsSelected) { var obj = DgvRoleSelectedItem; var frm = new FrmEntryHakAkses(true, obj.id); if (frm.ShowDialog() == DialogResult.OK) { RefreshDataSource(); // Data berhasil diubah } } } }