private void EditBookingButton_Click(object sender, RoutedEventArgs e) { var id = bookingListView.SelectedIndex; if (id > -1) { var booking = BookingMethods.Instance.list[id]; AddNewBooking addNewBooking = new AddNewBooking(booking); addNewBooking.ShowDialog(); } }
private void AddNewBooking_Click(object sender, RoutedEventArgs e) { AddNewBooking addNewBookingWindow = new AddNewBooking(); addNewBookingWindow.ShowDialog(); }