protected override void Tambah() { var frm = new FrmEntryHakAkses("Tambah Data " + this.Text, _bll); frm.Listener = this; frm.ShowDialog(); }
protected override void Perbaiki() { var index = this.gridList.SelectedIndex; if (!base.IsSelectedItem(index, this.TabText)) { return; } var role = _listOfRole[index]; if (IsAdministrator(role.nama_role)) { MsgHelper.MsgWarning("Maaf hak akses 'Administrator' tidak bisa diedit"); return; } var frm = new FrmEntryHakAkses("Edit Data " + this.Text, role, _bll); frm.Listener = this; frm.ShowDialog(); }