Пример #1
0
 public CarEditView(Car car, FuelTrackerContext context)
     : this()
 {
     //CarEditViewModel carEditViewModel = new CarEditViewModel( car.Id);
     //CarEditViewModel carEditViewModel = new CarEditViewModel(context, car);
     //this.DataContext = carEditViewModel;
 }
 public CarEditView(Car car, FuelTrackerContext context)
     : this()
 {
     //CarEditViewModel carEditViewModel = new CarEditViewModel( car.Id);
     //CarEditViewModel carEditViewModel = new CarEditViewModel(context, car);
     //this.DataContext = carEditViewModel;
 }
Пример #3
0
 /// <summary>
 /// Initialize the CarDataService
 /// </summary>
 public CarDataService()
 {
     Context = new FuelTrackerContext();
     Context.PropertyChanged += ContextPropertyChanged;
 }
		/// <summary>
		/// Initialize the CarDataService
		/// </summary>
		public CarDataService()
		{
			Context = new FuelTrackerContext();
			Context.PropertyChanged += ContextPropertyChanged;
		}