示例#1
0
        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();
            }
        }
示例#2
0
        private void AddNewBooking_Click(object sender, RoutedEventArgs e)
        {
            AddNewBooking addNewBookingWindow = new AddNewBooking();

            addNewBookingWindow.ShowDialog();
        }