Esempio n. 1
0
        public HomeViewModel(ILandmarkDataService landmarkDataService, INavigationService navigationService, IDialogService dialogService)
        {
            _landmarkDataService = landmarkDataService;
            _navigationService   = navigationService;
            _dialogService       = dialogService;

            _mustSeeLandmarks = new ObservableCollection <Landmark>();
        }
Esempio n. 2
0
        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);
        }