Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the TicketBookingViewModel class.
        /// </summary>
        public TicketBookingViewModel()
        {
            var details = new TicketInfoRepository();

            this.TheaterInformation   = details.GetDetails();
            this.timingCommand        = new Command <SfPopupLayout>(this.OnTimingButtonClicked);
            this.bookingCommand       = new Command <SfDataGrid>(this.OnBookingButtonClicked);
            this.proceedCommand       = new Command <SfPopupLayout>(this.OnProceedButtonClicked);
            this.acceptCommand        = new Command <SfPopupLayout>(this.OnAcceptButtonClicked);
            this.declineCommand       = new Command(this.OnDeclineButtonClicked);
            this.seatSelectionCommand = new Command <Label>(this.SelectSeat);
            this.openInfoCommand      = new Command <InfoPopupParameters>(this.OpenInfoPopup);
            this.SetBindingImageSource();
        }
Beispiel #2
0
        public TicketBookingViewModel()
        {
            TicketInfoRepository details = new TicketInfoRepository();

            theaterInformation = details.GetDetails();
        }