public HomeViewModel(ILandmarkDataService landmarkDataService, INavigationService navigationService, IDialogService dialogService) { _landmarkDataService = landmarkDataService; _navigationService = navigationService; _dialogService = dialogService; _mustSeeLandmarks = new ObservableCollection <Landmark>(); }
public LandmarkDetailViewModel(ILandmarkDataService landmarkDataService, INavigationService navigationService) { _landmarkDataService = landmarkDataService; _navigationService = navigationService; SelectedLandmark = new Landmark(); SaveCommand = new Command(OnSaveCommand); DeleteCommand = new Command(OnDeleteCommand); ReadDescriptionCommand = new Command(OnReadDescription); MapCommand = new Command(OnMapCommand); }