Beispiel #1
0
        public MovieSeatsPage(Window window, Page previousPage, SqlConnectionFactory sqlConnectionFactory, Screening screening) : base(window, previousPage, sqlConnectionFactory)
        {
            InitializeComponent();
            Loaded += (sender, args) => SpeechControl.SetParent(this);

            Screening = screening;

            InitializeSeatsView();
        }
Beispiel #2
0
        public Seat(Screening screening, int id, int no, int row, bool taken)
        {
            Screening = screening;

            Id = id;

            No = no;

            Row = row;

            Taken = taken;
        }
        private void ShowOrderData()
        {
            Screening screening = Seat.Screening;
            Movie     movie     = screening.Movie;

            OrderDataItemsControl.Items.Add(string.Format("Film: {0}", movie.Title));
            OrderDataItemsControl.Items.Add(string.Format("Data: {0}", screening.Date));
            OrderDataItemsControl.Items.Add(string.Format("Godzina: {0}", screening.Time));
            OrderDataItemsControl.Items.Add(string.Format("Sala: {0}", screening.Auditorium));
            OrderDataItemsControl.Items.Add(string.Format("Miejsce: rząd {0}, miejsce {1}", Seat.Row, Seat.No));
            OrderDataItemsControl.Items.Add(string.Format("Zamawiający: {0}", BookerName));
            OrderDataItemsControl.Items.Add(string.Format("Cena: {0} zł", Price.Value));
        }
        private void ShowTicketInfo()
        {
            Screening screening = Seat.Screening;
            Movie     movie     = screening.Movie;

            TicketInfoItemsControl.Items.Add(string.Format("Numer zamówienia: {0:D8}", TicketId));
            TicketInfoItemsControl.Items.Add(string.Format("Film: {0}", movie.Title));
            TicketInfoItemsControl.Items.Add(string.Format("Data: {0}", screening.Date));
            TicketInfoItemsControl.Items.Add(string.Format("Godzina: {0}", screening.Time));
            TicketInfoItemsControl.Items.Add(string.Format("Sala: {0}", screening.Auditorium));
            TicketInfoItemsControl.Items.Add(string.Format("Miejsce: rząd {0}, miejsce {1}", Seat.Row, Seat.No));
            TicketInfoItemsControl.Items.Add(string.Format("Zamawiający: {0}", BookerName));
            TicketInfoItemsControl.Items.Add(string.Format("Cena: {0} zł", Price.Value));
        }
 private void ChooseScreeningTime(Screening screening)
 {
     ChangePage(new MovieSeatsPage(window, this, sqlConnectionFactory, screening));
 }