Beispiel #1
0
 public ReportLogic(ITouristSpotLogic touristSpotLogic, IAccommodationLogic accommodationLogic,
                    IReservationLogic reservationLogic)
 {
     this.touristSpotLogic   = touristSpotLogic;
     this.accommodationLogic = accommodationLogic;
     this.reservationLogic   = reservationLogic;
 }
Beispiel #2
0
        public DetailViewModel(ref MainViewModel parent,
                               Movie selectedMovie,
                               IScheduleLogic scheduleLogic,
                               IReservationLogic reservationLogic,
                               ISeatLogic seatLogic)
        {
            this.parent           = parent;
            SelectedMovie         = selectedMovie;
            this.scheduleLogic    = scheduleLogic;
            this.reservationLogic = reservationLogic;
            this.seatLogic        = seatLogic;

            ReservationCommand = new AsyncDelegateCommand(SwitchToContactView, CanExecute);

            _ = InitializeAsync();
        }
Beispiel #3
0
        public PaymentViewModel(ref MainViewModel parent,
                                Schedule selectedSchedule,
                                IList <SelectionViewModel <TakenSeatViewModel> > selectedSeats,
                                IPaymentLogic paymentLogic,
                                IReservationLogic reservationLogic)
        {
            this.parent           = parent;
            this.selectedSeats    = selectedSeats;
            this.paymentLogic     = paymentLogic;
            this.reservationLogic = reservationLogic;
            this.selectedSchedule = selectedSchedule;

            this.PaymentInProgress = false;

            PayCommand = new AsyncDelegateCommand(ExecuteAsync, CanExecute);

            _ = InitializeAsync();
        }
Beispiel #4
0
 public ReservationController(IReservationLogic reservationLogic)
 {
     this.reservationLogic = reservationLogic;
 }