示例#1
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();
        }
示例#2
0
 public SeatController(ISeatLogic seatLogic)
 {
     _seatLogic = seatLogic;
 }