public EnregistrementsViewModel(INavigationService navigationService, IPoIService PoIService) : base(navigationService) { _PoIService = PoIService; DelegateDetailPoI = new DelegateCommand <PointOfInterest>(EnregistrementDetail); DelegateReverse = new DelegateCommand(ReverseEntries); DelegateSearch = new DelegateCommand(Research); }
public PoIEditViewModel(INavigationService navigationService, IPoIService poiService, IPageDialogService pageDialog) : base(navigationService) { PoIService = poiService; _dialogService = pageDialog; DelegateSave = new DelegateCommand(UpdateAndExit, CanEditPoI) .ObservesProperty(() => Name) .ObservesProperty(() => Tag) .ObservesProperty(() => Description); }
public PoIDetailViewModel(INavigationService navigationService, IPageDialogService dialogService, IPoIService poiService) : base(navigationService) { Title = "Détails PoI"; _dialogService = dialogService; _poiService = poiService; DelegateEdit = new DelegateCommand(EditPoI); DelegateDelete = new DelegateCommand(DeletePoI); }
public MyMapViewModel(INavigationService nav, IPoIService poi) : base(nav) { poiservice = poi; Map = new Map( MapSpan.FromCenterAndRadius( new Position(), Distance.FromMiles(0.3))) { VerticalOptions = LayoutOptions.FillAndExpand }; CallingGPS(); }
public NouveauViewModel(INavigationService navigationService, IPoIService PoIService, IPageDialogService dialogService) : base(navigationService) { Title = "Nouveau"; adresse = "Aucune Adresse"; CallingGPS(); ImageFilePath = BASE_IMAGE_SELECTER; _PoIService = PoIService; _dialogService = dialogService; DelegateTap = new DelegateCommand(ChoseMedia); DelegateSave = new DelegateCommand(SaveCurrentEntry, CanAddPoI) .ObservesProperty(() => Name) .ObservesProperty(() => Tag) .ObservesProperty(() => Description) .ObservesProperty(() => ImageFilePath); }