예제 #1
0
 public EnregistrementsViewModel(INavigationService navigationService, IPoIService PoIService)
     : base(navigationService)
 {
     _PoIService       = PoIService;
     DelegateDetailPoI = new DelegateCommand <PointOfInterest>(EnregistrementDetail);
     DelegateReverse   = new DelegateCommand(ReverseEntries);
     DelegateSearch    = new DelegateCommand(Research);
 }
예제 #2
0
 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);
 }
예제 #3
0
        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);
        }
예제 #4
0
        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();
        }
예제 #5
0
        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);
        }