Beispiel #1
0
        private static CustomerView CreateCustomerView()
        {
            CustomerReservationsDataView customerReservationsDataView = CreateCustomerReservationsDataView();
            MakeReservationView          makeReservationView          = CreateMakeReservationView();
            CustomerView customerView = new CustomerView(customerReservationsDataView, makeReservationView);

            return(customerView);
        }
Beispiel #2
0
        private static CustomerReservationsDataView CreateCustomerReservationsDataView()
        {
            IEventAggregator ea = new EventAggregator();
            TableView        reservationsTable = new TableView();

            reservationsTable.Presenter = new CustomerReservationsTablePresenter(
                reservationsTable,
                ea
                );
            CustomerReservationsDataView customerReservationsDataView =
                new CustomerReservationsDataView(reservationsTable);

            customerReservationsDataView.Presenter = new CustomerResevationsDataPresenter(
                customerReservationsDataView,
                ea
                );
            return(customerReservationsDataView);
        }