コード例 #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);
 }
コード例 #2
0
 public void Initialize()
 {
     _repository = new TestDataRepository();
     _model      = new LocationsServiceModel(_repository);
 }