Exemplo n.º 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();
        }
Exemplo n.º 2
0
        private void AddButtonClicked(object sender, RoutedEventArgs e)
        {
            Car           car;
            AddEditDialog aeDialog = new AddEditDialog(null, db);

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