Beispiel #1
0
 public ViewModel()
 {
     Location = new LocationModel();
     _locationServiceModel = new LocationsServiceModel();
     GetAllDataCommand     = new RelayCommand(ReloadLocations);
     AddLocationCommand    = new RelayCommand(AddLocation);
     DeleteLocationCommand = new RelayCommand(RemoveLocation);
     UpdateLocationCommand = new RelayCommand(UpdateLocation);
 }
Beispiel #2
0
 public void Initialize()
 {
     _repository = new TestDataRepository();
     _model      = new LocationsServiceModel(_repository);
 }