protected override void Tambah() { var frm = new FrmEntryPenggajianKaryawan("Tambah Data " + this.Text, cmbBulan.Text, cmbTahun.Text, _listOfKaryawan, _bll); frm.Listener = this; frm.ShowDialog(); }
protected override void Perbaiki() { var index = this.gridList.SelectedIndex; if (!base.IsSelectedItem(index, this.TabText)) { return; } var gaji = _listOfGaji[index]; LogicalThreadContext.Properties["OldValue"] = gaji.ToJson(); var frm = new FrmEntryPenggajianKaryawan("Edit Data " + this.Text, cmbBulan.Text, cmbTahun.Text, gaji, _listOfKaryawan, _bll); frm.Listener = this; frm.ShowDialog(); }