Beispiel #1
0
        private void ShowReservationButton_Click(object sender, RoutedEventArgs e)
        {
            ReservationItem   item = ((FrameworkElement)sender).DataContext as ReservationItem;
            ReservationWindow reservationWindow = new ReservationWindow();

            reservationWindow.Owner           = this;
            reservationWindow.ReservationItem = item;
            reservationWindow.Mode            = ReservationWindow.ReservationMode.Summary;
            reservationWindow.Show();
        }
        private void MakeReservationButton_Click(object sender, RoutedEventArgs e)
        {
            ReservationWindow reservationWindow = new ReservationWindow();

            reservationWindow.Owner           = this;
            reservationWindow.ReservationItem = new ReservationItem(null, Showing);
            reservationWindow.Authentication  = Authentication;
            reservationWindow.Service         = Service;
            reservationWindow.Mode            = ReservationWindow.ReservationMode.Create;
            reservationWindow.Show();
        }
Beispiel #3
0
        private void UpdateReservation_Click(object sender, RoutedEventArgs e)
        {
            ReservationItem   item = ((FrameworkElement)sender).DataContext as ReservationItem;
            ReservationWindow reservationWindow = new ReservationWindow();

            reservationWindow.Owner           = this;
            reservationWindow.ReservationItem = item;
            reservationWindow.Service         = Service;
            reservationWindow.Authentication  = Authentication;
            reservationWindow.Mode            = ReservationWindow.ReservationMode.Edit;
            reservationWindow.Show();
        }