void Edit() { var editcardialog = new EditCarItem() { DataContext = this }; editcardialog.ShowDialog(); ViewModel.Instance.Requery(); }
void AddCar() { var car = new Car(); var editCarDilaog = new EditCarItem() { DataContext = car }; editCarDilaog.ShowDialog(); // Let's just requery for now, as there are so many possibilities else. Requery(); }