private void NewReservationButton_Click(object sender, RoutedEventArgs e) { ReservationEditWindow reservationEditWindow = new ReservationEditWindow(DataManager); reservationEditWindow.ShowDialog(); UpdateReservationDataGrid(); }
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(); }