Exemplo n.º 1
0
 public TicketViewModel(CustomerReservation model) : base(model)
 {
     SaveCommand = new SaveReservationCommand(this);
     Reservation.Customer.CustomerName    = "Unknown";
     Reservation.Customer.CustomerSurname = "Unknown";
     Reservation.Reservation.Status       = 1;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the ReservationViewModel class with existing movie.
 /// </summary>
 /// <param name="model">Reservation to edit.</param>
 public ReservationViewModel(CustomerReservation model)
 {
     Reservation = model;
     SaveCommand = new SaveReservationCommand(this);
     Controller  = new ReservationController();
     Seats       = Controller.GetSeats(model.Reservation.ShowingId);
     SeatError   = "Wybierz miejsce.";
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the ReservationViewModel class with existing movie.
 /// </summary>
 /// <param name="model">Reservation to edit.</param>
 public ReservationViewModel(CustomerReservation model) : base(model)
 {
     SaveCommand = new SaveReservationCommand(this);
     Reservation.Reservation.Status = 0;
 }