예제 #1
0
        private void EditCar_Click(object sender, RoutedEventArgs e)
        {
            Car           car      = (Car)lstCars.SelectedItem;
            AddEditDialog aeDialog = new AddEditDialog(car, db);

            aeDialog.Owner = this;
            aeDialog.ShowDialog();
        }
예제 #2
0
        private void AddButtonClicked(object sender, RoutedEventArgs e)
        {
            Car           car;
            AddEditDialog aeDialog = new AddEditDialog(null, db);

            aeDialog.Owner = this;
            aeDialog.ShowDialog();
        }