Ejemplo n.º 1
0
 public MotelsMapPageViewModel(INavigationService navigationService, GetAllMotels getAllMotels)
     : base(navigationService)
 {
     _getAllMotels            = getAllMotels;
     Title                    = "Cabañas";
     Locations                = new ObservableCollection <MotelLocation>();
     Pins                     = new ObservableCollection <Pin>();
     SearchResultLocations    = new List <MotelLocation>();
     TextSearchChangedCommand = new DelegateCommand(TextSearchChanged);
     LoadMotelsLocations();
 }
 public MotelsMapPageViewModel(INavigationService navigationService, IPageDialogService dialogService, GetAllMotels getAllMotels)
     : base(navigationService)
 {
     _getAllMotels            = getAllMotels;
     _dialogService           = dialogService;
     Title                    = "Cabañas";
     Locations                = new ObservableCollection <MotelLocation>();
     Motels                   = new List <Motel>();
     Pins                     = new ObservableCollection <Pin>();
     SearchResultLocations    = new List <MotelLocation>();
     TextSearchChangedCommand = new DelegateCommand(TextSearchChanged);
     LoadMotelsLocations().Await(Completed, ErrorHandler);
 }