public AddEmployeePresenter( AddEmployeeView view, TransactionContainer container, PayrollDatabase database) { this.view = view; transactionContainer = container; this.database = database; }
public void LoadAddEmployeeView(TransactionContainer transactionContainer) { AddEmployeeWindow view = new AddEmployeeWindow(); AddEmployeePresenter presenter = new AddEmployeePresenter(view, transactionContainer, database); view.Presenter = presenter; LoadView(view); }
public PayrollPresenter( PayrollDatabase database, ViewLoader viewLoader) { this.database = database; this.viewLoader = viewLoader; TransactionContainer.AddAction addAction = new TransactionContainer.AddAction(TransactionAdded); transactionContainer = new TransactionContainer(addAction); }