public CheckoutPageViewModel(CheckoutPage view, TicketRepository repository, Showtime showtime,
            List<AuditoriumSeat> seats)
        {
            this.repository = repository;
            this.showtime = showtime;
            this.seats = seats;
            this.view = view;

            Total = showtime.Price*seats.Count;

            ArrowAnimatedBrush = new SolidColorBrush();
        }
Exemplo n.º 2
0
 public void NavigateToCheckoutPage(Showtime showtime, IEnumerable<AuditoriumSeat> seats)
 {
     var checkoutPage = new CheckoutPage(showtime, seats.ToList());
     DataContext = checkoutPage;
 }