示例#1
0
        private void AddCarButton_OnClick(object sender, RoutedEventArgs e)
        {
            var add = new CarWindow_Car(conn, null);

            add.ShowDialog();
            UpdateCars();
        }
示例#2
0
        private void ShowCarButton_OnClick(object sender, RoutedEventArgs e)
        {
            CarQh selectedCar = (CarQh)CarsDataGrid.SelectedItem;

            if (selectedCar == null)
            {
                MessageBox.Show("Choose car to show");
                return;
            }
            var show = new CarWindow_Car(conn, selectedCar);

            show.ShowDialog();
            UpdateCars();
        }