예제 #1
0
        public static BaseViewModel GetOverviewViewModel(MainViewModel parent)
        {
            var dbContext = DBContextFactory.GetAdoDatabaseContext();

            return(new OverviewViewModel(ref parent,
                                         new GenreLogic(dbContext),
                                         new ScheduleLogic(dbContext)));
        }
예제 #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())));
 }
예제 #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)));
        }