Ejemplo n.º 1
0
        public static BaseViewModel GetOverviewViewModel(MainViewModel parent)
        {
            var dbContext = DBContextFactory.GetAdoDatabaseContext();

            return(new OverviewViewModel(ref parent,
                                         new GenreLogic(dbContext),
                                         new ScheduleLogic(dbContext)));
        }
Ejemplo n.º 2
0
 public static BaseViewModel GetPaymentViewModel(MainViewModel parent,
                                                 Schedule selectedSchedule,
                                                 IList <SelectionViewModel <TakenSeatViewModel> > selectedSeats)
 {
     return(new PaymentViewModel(ref parent,
                                 selectedSchedule,
                                 selectedSeats,
                                 new PaymentLogic(),
                                 new ReservationLogic(DBContextFactory.GetAdoDatabaseContext())));
 }
Ejemplo n.º 3
0
        public static BaseViewModel GetDetailViewModel(MainViewModel parent, Movie selectedMovie)
        {
            var dbContext = DBContextFactory.GetAdoDatabaseContext();

            return(new DetailViewModel(ref parent,
                                       selectedMovie,
                                       new ScheduleLogic(dbContext),
                                       new ReservationLogic(dbContext),
                                       new SeatLogic(dbContext)));
        }