예제 #1
0
 public AddEmployeePresenter(
     AddEmployeeView view,
     TransactionContainer container,
     PayrollDatabase database)
 {
     this.view            = view;
     transactionContainer = container;
     this.database        = database;
 }
예제 #2
0
        public void LoadAddEmployeeView(TransactionContainer transactionContainer)
        {
            AddEmployeeWindow    view      = new AddEmployeeWindow();
            AddEmployeePresenter presenter = new AddEmployeePresenter(view, transactionContainer, database);

            view.Presenter = presenter;

            LoadView(view);
        }
예제 #3
0
 public PayrollPresenter(
     PayrollDatabase database,
     ViewLoader viewLoader)
 {
     this.database   = database;
     this.viewLoader = viewLoader;
     TransactionContainer.AddAction addAction = new TransactionContainer.AddAction(TransactionAdded);
     transactionContainer = new TransactionContainer(addAction);
 }