public CarEditView(Car car, FuelTrackerContext context) : this() { //CarEditViewModel carEditViewModel = new CarEditViewModel( car.Id); //CarEditViewModel carEditViewModel = new CarEditViewModel(context, car); //this.DataContext = carEditViewModel; }
/// <summary> /// Initialize the CarDataService /// </summary> public CarDataService() { Context = new FuelTrackerContext(); Context.PropertyChanged += ContextPropertyChanged; }