Beispiel #1
0
 public void SetGlobalSettings(CatchemSettings settings)
 {
     _globalSettings     = settings;
     pokeMap.MapProvider = _globalSettings.Provider;
     _globalSettings.BindNewMapProvider((provider) =>
     {
         pokeMap.MapProvider = provider;
         return(true);
     });
 }
Beispiel #2
0
 public void SetGlobalSettings(CatchemSettings settings)
 {
     _globalSettings     = settings;
     pokeMap.MapProvider = _globalSettings.Provider;
     MapProviderComboBox.SelectedItem = _globalSettings.ProviderEnum;
     _globalSettings.BindNewMapProbider((provider) =>
     {
         pokeMap.MapProvider = provider;
         return(true);
     });
 }
 public void SetGlobalSettings(CatchemSettings settings)
 {
     _globalSettings     = settings;
     pokeMap.MapProvider = _globalSettings.Provider;
     MapProviderComboBox.SelectedItem = _globalSettings.ProviderEnum;
     cb_mapFollowThePlayer.IsChecked  = _globalSettings.FollowTheWhiteRabbit;
     cb_keepPokemonMarkers.IsChecked  = _globalSettings.KeepPokeMarkersOnMap;
     _globalSettings.BindNewMapProvider(provider =>
     {
         pokeMap.MapProvider = provider;
         return(true);
     });
 }
        public void SetGlobalSettings(CatchemSettings settings)
        {
            _globalSettings             = settings;
            RouteCreatorMap.MapProvider = _globalSettings.Provider;
            _globalSettings.BindNewMapProbider((provider) =>
            {
                RouteCreatorMap.MapProvider = provider;
                return(true);
            });
            RoutesListBox.ItemsSource = _globalSettings.Routes;
            var bot = MainWindow.BotsCollection.FirstOrDefault();

            if (bot != null)
            {
                RouteCreatorMap.Position = new PointLatLng(bot.GlobalSettings.LocationSettings.DefaultLatitude,
                                                           bot.GlobalSettings.LocationSettings.DefaultLongitude);
            }
        }
Beispiel #5
0
 public void SetGlobalSettings(CatchemSettings settings)
 {
     _globalSettings = settings;
     CustomRouteComboBox.ItemsSource = _globalSettings.Routes;
 }