コード例 #1
0
        private void BtnNew_Click(object sender, RoutedEventArgs e)
        {
            Booking_DataEntry newWin = new Booking_DataEntry();

            newWin.ShowDialog();
            UpdateList();
        }
コード例 #2
0
        private void EditButton_Click(object sender, RoutedEventArgs e)
        {
            Button            button  = sender as Button;
            Booking           booking = button.DataContext as Booking;
            int               index   = lvBookingList.Items.IndexOf(booking);
            Booking_DataEntry win     = new Booking_DataEntry(booking, false);

            win.ShowDialog();
            UpdateList(index);
        }