Пример #1
0
        private void Button_AddCar(object sender, RoutedEventArgs e)
        {
            Window AddCar = new AutoHinzufügen(null);

            AddCar.Show();
            this.Close();
        }
Пример #2
0
        private void Button_ModifyCar(object sender, RoutedEventArgs e)
        {
            var    viewModel = (AutoViewModel)DataContext;
            Window AddCar    = new AutoHinzufügen(viewModel.SelectedAuto);

            AddCar.Show();
            this.Close();
        }