示例#1
0
        private void NewReservationButton_Click(object sender, RoutedEventArgs e)
        {
            ReservationEditWindow reservationEditWindow = new ReservationEditWindow(DataManager);

            reservationEditWindow.ShowDialog();
            UpdateReservationDataGrid();
        }
示例#2
0
        private void editReservationButton_Click(object sender, RoutedEventArgs e)
        {
            ReservationViewObject reservationObject = (ReservationViewObject)reservationsDataGrid.SelectedItem;

            if (reservationObject == null)
            {
                WindowManager.ShowPopupMessage("Select reservation to edit.");
                return;
            }

            ReservationEditWindow reservationEditWindow = new ReservationEditWindow(DataManager, reservationObject);

            reservationEditWindow.ShowDialog();
            UpdateReservationDataGrid();
        }