public DebtPaymentPurchaseListUI(DebtPaymentUI frmDebtPayment) { purchaseRepository = ServiceLocator.GetObject <IPurchaseRepository>(); this.frmDebtPayment = frmDebtPayment; InitializeComponent(); }
private void mnuPembayaranHutang_Click(object sender, EventArgs e) { var userAccess = userAccessRepository.GetAll(); bool isAllowed = userAccess.Exists(u => u.FullName == Store.ActiveUser && u.ObjectName == "Pelunasan Hutang" && u.IsOpen); if (isAllowed || Store.IsAdministrator) { var frmDebtPayment = new DebtPaymentUI(this); frmDebtPayment.MdiParent = this; frmDebtPayment.Show(); } else { MessageBox.Show("Anda tidak dapat membuka form ini", "Perhatian", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
public DebtPaymentHistoryUI(DebtPaymentUI frmDebtPayment) { debtPaymentRepository = ServiceLocator.GetObject <IDebtPaymentRepository>(); this.frmDebtPayment = frmDebtPayment; InitializeComponent(); }