public PersonEntry(ILocationService locationService, IAddress address) { _locationService = locationService; _address = address; _roAvailableCountries = new ReadOnlyObservableCollection<ICountry>(_availableCountries); }
public UserTasks( IInterestTasks interestTasks, IImageProcessor imageProcessor, IFileUploadService fileUploadService, IWebContentService webContentService, IFeedFinder feedFinder, IUserAuthentication userAuthentication, IConversationRepository conversationRepository, IEmailService emailService, ILocationService locationService, IUserRepository userRepository, IPageParsingService pageParsingService, IUserInterestTasks userInterestTasks) { _interestTasks = interestTasks; _imageProcessor = imageProcessor; _fileUploadService = fileUploadService; _webContentService = webContentService; _feedFinder = feedFinder; _userAuthentication = userAuthentication; _conversationRepository = conversationRepository; _emailService = emailService; _locationService = locationService; _userRepository = userRepository; _pageParsingService = pageParsingService; _userInterestTasks = userInterestTasks; }
/// <summary> /// Initializes a new instance of the <see cref="MainPageViewModel"/> class. /// </summary> public MainPageViewModel(ILocationService locationService) { _locationService = locationService; PreviousMap = new Command<object, object>(OnPreviousMapExecute, OnPreviousMapCanExecute); NextMap = new Command<object, object>(OnNextMapExecute, OnNextMapCanExecute); AvailableMapSources = new ObservableCollection<BaseTileSource> { new BingAerial {Name = "Bing Aerial"}, new BingRoad {Name = "Bing Road"}, new Mapnik {Name = "OSM Mapnik"}, new OsmaRender {Name = "OsmaRender"}, new Google {Name = "Google Hybrid", MapType = GoogleType.Hybrid}, new Google {Name = "Google Street", MapType = GoogleType.Street}, }; if (AvailableMapSources.Count > 0) { CurrentMap = AvailableMapSources[0]; } // Initialize demo route, uncomment if you want to use the real location service of WP7 InitializeDemoRoute(); // For test purposes, we want to zoom in as well ZoomLevel = 19; // This is the actual subscription to the location service which you would regularly do in a view-model _locationService.LocationChanged += OnCurrentLocationChanged; _locationService.Start(); }
public AddViewModel(ICollectionService collectionService, ILocationService locationService, IMvxMessenger messenger) { _collectionService = collectionService; _locationService = locationService; _token = messenger.SubscribeOnMainThread<LocationMessage>(OnLocation); GetInitialLocation(); }
public LocationController(CoreSettings coreSettings, IPermissionService permissionService, ILocationService locationService, IWorkContext workContext) { _coreSettings = coreSettings; _locationService = locationService; _permissionService = permissionService; _workContext = workContext; }
public BundleController() { bundleService = new BundleService(); locationService = new LocationService(); resourceService = new ResourceService(); userService = new UserService(); }
public HomeController( ILocationService locationService, IJobOpportunityRepository jobOpportunityRepository) { _locationService = locationService; _jobOpportunityRepository = jobOpportunityRepository; }
public MainViewModel(ILocationService gps) { _gps = gps; Location = "MELBOURNE, AUSTRALIA"; client = new WWOClient("your-api-key"); LoadData(); }
public AccountButtonSelectorViewModel(IApplicationState applicationState, IApplicationStateSetter applicationStateSetter, ILocationService locationService, IUserService userService) { _applicationState = applicationState; _applicationStateSetter = applicationStateSetter; _locationService = locationService; _userService = userService; SelectLocationCategoryCommand = new DelegateCommand<AccountScreen>(OnSelectLocationCategoryExecuted); LocationSelectionCommand = new DelegateCommand<AccountButtonViewModel>(OnSelectLocationExecuted); CloseScreenCommand = new CaptionCommand<string>(Resources.Close, OnCloseScreenExecuted); EditSelectedLocationScreenPropertiesCommand = new CaptionCommand<string>(Resources.Properties, OnEditSelectedLocationScreenProperties, CanEditSelectedLocationScreenProperties); IncPageNumberCommand = new CaptionCommand<string>(Resources.NextPage + " >>", OnIncPageNumber, CanIncPageNumber); DecPageNumberCommand = new CaptionCommand<string>("<< " + Resources.PreviousPage, OnDecPageNumber, CanDecPageNumber); EventServiceFactory.EventService.GetEvent<GenericEvent<Department>>().Subscribe( x => { if (x.Topic == EventTopicNames.SelectAccountState) { RefreshLocations(); } }); EventServiceFactory.EventService.GetEvent<GenericEvent<Message>>().Subscribe( x => { if (_applicationState.ActiveAppScreen == AppScreens.LocationList && x.Topic == EventTopicNames.MessageReceivedEvent && x.Value.Command == Messages.TicketRefreshMessage) { RefreshLocations(); } }); }
public NewEntryViewModel (INavService navService, ILocationService locService, ITripLogDataService tripLogDataService) : base(navService) { this.tripLogDataService = tripLogDataService; this.locService = locService; Date = DateTime.Today; Rating = 1; }
public ShippingAddressUserControlViewModel(ICheckoutDataRepository checkoutDataRepository, ILocationService locationService, IResourceLoader resourceLoader) { _address = new Address(); _checkoutDataRepository = checkoutDataRepository; _locationService = locationService; _resourceLoader = resourceLoader; }
public PetsAdministrationController(IPetService pets, IPetStatusService petStatuses, IUserService users, ILocationService locations, IBreedService breeds) { this.pets = pets; this.petStatuses = petStatuses; this.users = users; this.locations = locations; this.breeds = breeds; }
public GeoCodeOperation(string inKey, string outKey, int sleep, bool useHttps, IParameters parameters) : base(inKey, outKey) { _sleep = sleep; _parameters = parameters.ToEnumerable().Select(kv => kv.Value).ToArray(); _service = new GoogleLocationService(useHttps); _useParameters = parameters.Count > 1; Name = string.Format("GeoCode ({0})", outKey); }
public LocationController(ILocationService locationService, IProvinceService provinceService, IAreaService areaService, ICategoryService categoryService, ILocationImageService locationImageService) { this.locationService = locationService; this.provinceService = provinceService; this.areaService = areaService; this.categoryService = categoryService; this.locationImageService = locationImageService; }
public MainViewModel() { Venues = new ObservableCollection<Venue>(); // TODO: constructor injection _foursquare = new FoursquareService(); _location = DependencyService.Get<ILocationService>(); }
public EventController( IEventService eventService, ILocationService locationService ) { _eventService = eventService; _locationService = locationService; }
public SettingsController(IUserService userService, IAuthProvider authProvider, ILocationService locationService, IHash hash) { _userService = new UserServiceClient(); _authProvider = authProvider; _locationService = new LocationServiceClient(); _hash = hash; }
public NearbyStationsViewModel(INavigationService navigationService, ILocationService ls, IDataService ds) : base(StationsViewModelEnum.Nearby, navigationService) { _locationService = ls; _dataService = ds; DisplayName = AppResources.Stations_NearbyTitle; }
public EmployeeController(IEmployeeService employeeService, INamePrefixService namePrefixService, ILocationService locationService, IDepartmentService departmentService, ISkillService skillService) { _employeeService = employeeService; _namePrefixService = namePrefixService; _locationService = locationService; _departmentService = departmentService; _skillService = skillService; }
public BillingAddressUserControlViewModel(ICheckoutDataRepository checkoutDataRepository, ILocationService locationService, IResourceLoader resourceLoader, IAlertMessageService alertMessageService) { _address = new Address(); _isEnabled = true; _checkoutDataRepository = checkoutDataRepository; _locationService = locationService; _resourceLoader = resourceLoader; _alertMessageService = alertMessageService; }
public UserController( ILocationService locationService, IContactService contactService, IAddressService addressService) { this.locationService = locationService; this.contactService = contactService; this.addressService = addressService; }
public HomeController(ICategoryService categoryService, ILocationService locationService, IProjectService projectService, SiteSettings siteSettings, ISuccessStoryService successStoryService, ITweetService tweetService, IWebHelper webHelper) { _categoryService = categoryService; _locationService = locationService; _projectService = projectService; _siteSettings = siteSettings; _successStoryService = successStoryService; _tweetService = tweetService; _webHelper = webHelper; }
public Form1() { InitializeComponent(); //ottengo l'instanza del servizio try { jimbeService = new ServiceController("JimbeService"); } catch (Exception) { MessageBox.Show("Servizio non trovato, assicurati di averlo installato"); notifyIcon1.Icon = Properties.Resources.flag_red; Application.Exit(); } if (jimbeService.Status == ServiceControllerStatus.Running) { //servizio attivo //mi collego al servizio tramite wcf per ottenere la locazione attuale try { _proxy = ProxyFactory.GetProxy(Properties.Settings.Default.Url_TryApp); } catch (Exception) { attivatoreToolStripMenuItem.Text = "Attiva LocalizeMe"; locationName = "LocalizeMe non attivo"; notifyIcon1.Icon = Properties.Resources.flag_red; notifyIcon1.Text = locationName; } actualLocation = _proxy.GetCurrentLocation(); attivatoreToolStripMenuItem.Text = "Disattiva LocalizeMe"; if (actualLocation == null) { //locazione non trovata locationName = "nessuna locazione individuata"; notifyIcon1.Icon = Properties.Resources.flag_blue; notifyIcon1.Text = locationName; } else { //locazione trovata locationName = actualLocation.Name; notifyIcon1.Icon = Properties.Resources.flag_green; } } else { attivatoreToolStripMenuItem.Text = "Attiva LocalizeMe"; locationName = "LocalizeMe non attivo"; notifyIcon1.Icon = Properties.Resources.flag_red; } }
public LocationViewModel(ILocationService locationService) { Title = "Location"; StartLocationCommand = new Command(_startLocation); StopLocationCommand = new Command(_stopLocation); GetLocationCommand = new Command(_getLocation); // wire up all that location goodness _locationService = locationService; _locationService.LocationUpdated += _locationService_LocationUpdated; }
public MainViewModel(IWeatherService weatherService, ILocationService locService) { this.weatherService = weatherService; this.locService = locService; Task.Run(async () => { var currentLocation = await this.locService.GetCurrentLocation(); CurrentWeather = await this.weatherService.GetCurrentLocationWeather(currentLocation); }); }
public AddViewModel( ICollectionService collectionService, ILocationService locationService, IMvxMessenger messenger, IMvxPictureChooserTask pictureChooserTask, IMvxFileStore fileStore) { _collectionService = collectionService; _locationService = locationService; _pictureChooserTask = pictureChooserTask; _fileStore = fileStore; _token = messenger.SubscribeOnMainThread<LocationMessage>(OnLocation); GetInitialLocation(); }
/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public MainViewModel(ILocationService locationService) { IsStartEnable = true; IsLocationEnable = true; IsStopEnable = false; _locationService = locationService; _locationService.ReportInterval = 5; _locationService.PositionChanged += LocationService_PositionChanged; _locationService.StatusChanged += LocationService_StatusChanged; StartCommand =new RelayCommand(Start); StopCommand =new RelayCommand(Stop); LocationCommand = new RelayCommand(GetLocation); }
public HomeViewModel(IEntityCache cache, ILocalStorage storage, ILocationService locationService, ILocationTrackingSensor sensor) { _cache = cache; _storage = storage; _locationService = locationService; _sensor = sensor; Title = "Home"; NextPageCommand = new Command(_nextPage); ShowNativeViewCommand = new Command(_onShowNativeView); RepeatersCommand = new Command(_onRepeaters); }
public GpsPage() { _locationProvider = DependencyService.Get<ILocationService>(); _gpsLabel = new Label { Text = "Let's do some GPS!", VerticalOptions = LayoutOptions.CenterAndExpand, HorizontalOptions = LayoutOptions.CenterAndExpand, }; MessagingCenter.Subscribe<ILocationService,string>(this, Messaging.LocationUpdated, HandleLocationUpdate); Content = _gpsLabel; }
public ProjectController(ICategoryService categoryService, ICommentService commentService, IGeolocationService geolocationService, ILocationService locationService, ILogService logService, IModerationQueueService moderationQueueService, IProjectService projectService, IProfanityService profanityService, SiteSettings siteSettings, IUserService userService, IWebHelper webHelper, IWorkContext workContext) { _categoryService = categoryService; _commentService = commentService; _geolocationService = geolocationService; _locationService = locationService; _logService = logService; _moderationQueueService = moderationQueueService; _profanityService = profanityService; _projectService = projectService; _siteSettings = siteSettings; _userService = userService; _webHelper = webHelper; _workContext = workContext; }
public LocationController(ILocationService service) : base(service) { }
public WeatherForecastService(IOptions <AppSettings> appSettings, ILocationService locationService) { _appSettings = appSettings; _locationService = locationService; }
public DialogScheduledViewModel(IProtoService protoService, ICacheService cacheService, ISettingsService settingsService, IEventAggregator aggregator, ILocationService locationService, ILiveLocationService liveLocationService, INotificationsService pushService, IPlaybackService playbackService, IVoIPService voipService, INetworkService networkService, IMessageFactory messageFactory) : base(protoService, cacheService, settingsService, aggregator, locationService, liveLocationService, pushService, playbackService, voipService, networkService, messageFactory) { }
public TrackingService(IFileReader fileReader, ILocationService locationService = null) { this.fileReader = fileReader; this.locationService = locationService; }
public LocationController(ILocationService categoryService) { _categoryService = categoryService; }
public LocationsController(ILocationService locationService) { _locationService = locationService; }
public SendLocationViewModel(IProtoService protoService, ICacheService cacheService, ISettingsService settingsService, IEventAggregator aggregator, ILocationService foursquareService) : base(protoService, cacheService, settingsService, aggregator) { _locationService = foursquareService; Items = new MvxObservableCollection <Venue>(); OnNavigatedToAsync(null, NavigationMode.New, null); }
public StandControl(ILogger <StandControl> logger, IEventProducer eventProducer, Dictionary <Guid, Dinner> openDinnerOrders, Dictionary <Guid, DateTime> ordersDoneAtTime, ILocationService locationService) { this.logger = logger; this.eventProducer = eventProducer; this.openDinnerOrders = openDinnerOrders; this.ordersDoneAtTime = ordersDoneAtTime; standRepo = new LocationRepository <Stand>(locationService, new LocationConverter <Stand>((x) => new Stand(x))); locationService.CalculateLocationDistances(standRepo.All()); }
public DemoController(IAuthenticationService authenticationService, IAccountUserService customerService, ISceneService sceneService, ILocationService locationService, IAccountUserRegistrationService customerRegistrationService, IEncryptionService encryptionService, IWebHelper webHelper, IWorkContext workContext, AccountUserSettings customerSettings, CommonSettings commonSettings, SecuritySettings securitySettings, ISettingService settingService ) { _authenticationService = authenticationService; _accountUserService = customerService; _accountUserRegistrationService = customerRegistrationService; _encryptionService = encryptionService; _webHelper = webHelper; _workContext = workContext; _accountUserSettings = customerSettings; _commonSettings = commonSettings; _securitySettings = securitySettings; _settingService = settingService; _sceneService = sceneService; _locationService = locationService; }
public MainService(AppDbContext context, ILocationService locationService, IMessageService messageService) { _context = context; _locationService = locationService; _messageService = messageService; }
public ContractorController(IRequestService reqService, ILocationService locService, IContractorService contractorService) { _requestService = reqService; _locationService = locService; _contractorService = contractorService; }
public GetSpotsAvailablePerHourQueryHandler(IAccessRequestService accessRequestService, ILocationService locationService) { _accessRequestService = accessRequestService; _locationService = locationService; }
public GetLocationsQueryHandler(ILocationService locationService, IPostcodeService postcodeService) { _locationService = locationService; _postcodeService = postcodeService; }
public SettingPageViewModel(ISettingsService settingsService, ICommonService commonService, ILocationService locationService, IAddressService addressService) { _settingsService = settingsService; _commonService = commonService; _locationService = locationService; _addressService = addressService; SaveSettingsCommand = new CustomCommand(SaveSettings, CanSaveSettings); GetUserLocationCommand = new CustomCommand(GetuserLocationAsync, CanGetUserLocation); FillSettingsInformation(); }
public DialogPinnedViewModel(IProtoService protoService, ICacheService cacheService, ISettingsService settingsService, IEventAggregator aggregator, ILocationService locationService, INotificationsService pushService, IPlaybackService playbackService, IVoipService voipService, IGroupCallService groupCallService, INetworkService networkService, IStorageService storageService, ITranslateService translateService, IMessageFactory messageFactory) : base(protoService, cacheService, settingsService, aggregator, locationService, pushService, playbackService, voipService, groupCallService, networkService, storageService, translateService, messageFactory) { }
public MainViewModel(IMvxNavigationService navigationService, IMvxMessenger messenger, ILocationService loc) { _navigationService = navigationService; _messenger = messenger; }
public WeatherService(ILocationService locationService) { _locationService = locationService; }
public HomeController(ILocationService locationService, ILogger <HomeController> logger, AppSettings appSettings) { _locationService = locationService; _logger = logger; _appSettings = appSettings; }
public CitiesController(ILocationService locationService) { this._locationService = locationService; }
public LocationController(ILocationService locationService) { this._locationService = locationService; }
public MainPageViewModel(ILocationService locationService) { _locationService = locationService; _locationService.LocationChanged += _locationService_LocationChanged; }
public MainViewModel(ILocationService locationService) { _locationService = locationService; GetLocationCommand = new MvxAsyncCommand(GetLocationAction); }
public LocationController(ILocationService service) { _service = service; }
public AddressDialog(string prompt, ILocationService locationService) { this.prompt = prompt; this.locationService = locationService; }
public ChatsNearbyViewModel(IProtoService protoService, ICacheService cacheService, ISettingsService settingsService, IEventAggregator aggregator, ILocationService locationService) : base(protoService, cacheService, settingsService, aggregator) { _locationService = locationService; Users = new MvxObservableCollection <ChatNearby>(); Chats = new MvxObservableCollection <ChatNearby>(); OpenChatCommand = new RelayCommand <ChatNearby>(OpenChatExecute); }
public Locator() { this.locationService = new T(); }
public AmbeeService(IRequestService requestService, IRuntimeContext runtimeContext, ILocationService locationService, string lang = "sr", bool isImperial = false) { _requestService = requestService; _runtimeContext = runtimeContext; _locationService = locationService; _isImperial = isImperial; _baseEndpoint = runtimeContext.GetBaseEndpoint(GetType().Name); _serviceKey = runtimeContext.GetKey(GetType().Name); }
public ApiController(DBContext context, ICheckService checkService, IInfectionService infectionManager, ILocationService locationService) { _context = context; _checkService = checkService; _infectionManager = infectionManager; _locationService = locationService; }
public StandControl(ILogger <StandControl> logger, IEventProducer eventProducer, ILocationService locationService) { this.logger = logger; this.eventProducer = eventProducer; standRepo = new LocationRepository <Stand>(locationService, new LocationConverter <Stand>((x) => new Stand(x))); locationService.CalculateLocationDistances(standRepo.All()); }
public LocationController(ILocationService locationProvider, IMapper imapper) { _locationProvider = locationProvider; _mapper = imapper; }