Example #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();
        }
        public TicketDataPage(Window window, Page previousPage, SqlConnectionFactory sqlConnectionFactory, Seat seat) : base(window, previousPage, sqlConnectionFactory)
        {
            InitializeComponent();
            Loaded += (sender, args) => SpeechControl.SetParent(this);

            Seat = seat;

            InitializeComboBox();
        }
        public DescriptionPage(Window window, Page previousPage, SqlConnectionFactory sqlConnectionFactory, Movie movie) : base(window, previousPage, sqlConnectionFactory)
        {
            InitializeComponent();
            Loaded += (sender, args) => SpeechControl.SetParent(this);

            Movie = movie;

            InitializeMovieData();
        }
        public SummaryPage(Window window, Page previousPage, SqlConnectionFactory sqlConnectionFactory, Seat seat, Price price, string bookerName) : base(window, previousPage, sqlConnectionFactory)
        {
            InitializeComponent();
            Loaded += (sender, args) => SpeechControl.SetParent(this);

            Seat       = seat;
            Price      = price;
            BookerName = bookerName;

            ShowOrderData();
        }
        public ConfirmationPage(Window window, SqlConnectionFactory sqlConnectionFactory, Seat seat, Price price, string bookerName) : base(window, sqlConnectionFactory)
        {
            InitializeComponent();
            Loaded += (sender, args) => SpeechControl.SetParent(this);

            Seat       = seat;
            Price      = price;
            BookerName = bookerName;
            TicketId   = GetTicketId();

            ShowTicketInfo();
        }
Example #6
0
 public OrderPage(Window window, Page previousPage, SqlConnectionFactory sqlConnectionFactory) : base(window, previousPage, sqlConnectionFactory)
 {
     InitializeComponent();
     Loaded += (sender, args) => SpeechControl.SetParent(this);
     ListMovies();
 }
Example #7
0
 public MainPage(Window window, SqlConnectionFactory sqlConnectionFactory) : base(window, sqlConnectionFactory)
 {
     InitializeComponent();
     Loaded += (sender, args) => SpeechControl.SetParent(this);
 }