public StopsListPageViewModel(
     INavigationService navigationService,
     IPageDialogService pageDialogService,
     IStopsRepository stopsRepository)
     : base(navigationService, pageDialogService)
 {
     _stopsRepository = stopsRepository;
 }
Exemple #2
0
        public MapController(IStopsRepository _repository)
        {
            repository = _repository;

            // создадим список данных
            stations.Add(new Station()
            {
                Id      = 1,
                Name    = "АП",
                GeoLat  = 23.745706,
                GeoLong = 52.102093,
            });
            stations.Add(new Station()
            {
                Id      = 2,
                Name    = "Чулочный комбинат",
                GeoLat  = 23.734417,
                GeoLong = 52.103116,
            });
            stations.Add(new Station()
            {
                Id      = 3,
                Name    = "Чулочный комбинат",
                GeoLat  = 23.735619,
                GeoLong = 52.103343,
            });
            stations.Add(new Station()
            {
                Id      = 4,
                Name    = "Ковры Бреста",
                GeoLat  = 23.728479,
                GeoLong = 52.100252,
            });
            stations.Add(new Station()
            {
                Id      = 5,
                Name    = "Ковры Бреста",
                GeoLat  = 23.729604,
                GeoLong = 52.100388,
            });

            stations.Add(new Station()
            {
                Id      = 6,
                Name    = "Киевская",
                GeoLat  = 23.721275,
                GeoLong = 52.102358,
            });
            stations.Add(new Station()
            {
                Id      = 7,
                Name    = "Киевская",
                GeoLat  = 23.722496,
                GeoLong = 52.101452,
            });

            stations.Add(new Station()
            {
                Id      = 8,
                Name    = "Березовка",
                GeoLat  = 23.716032,
                GeoLong = 52.114793,
            });
            stations.Add(new Station()
            {
                Id      = 9,
                Name    = "Березовка",
                GeoLat  = 23.715971,
                GeoLong = 52.114178,
            });

            stations.Add(new Station()
            {
                Id      = 10,
                Name    = "Радужная",
                GeoLat  = 23.712152,
                GeoLong = 52.118220,
            });

            stations.Add(new Station()
            {
                Id      = 11,
                Name    = "Радужная",
                GeoLat  = 23.713214,
                GeoLong = 52.117169,
            });
        }
Exemple #3
0
 public PrepareStopsList(IGetData getData, IStopsRepository stopsRepository, IMaps maps)
 {
     _getData         = getData;
     _stopsRepository = stopsRepository;
     _maps            = maps;
 }
 public AdminController(IStopsRepository _repository)
 {
     repository = _repository;
 }
 public HomeController(IStopsRepository _repository)
 {
     repository = _repository;
 }
        public MapController(IStopsRepository _repository)
        {
            repository = _repository;

              // создадим список данных
              stations.Add(new Station()
              {
             Id = 1,
             Name = "АП",
             GeoLat = 23.745706,
             GeoLong = 52.102093,
              });
              stations.Add(new Station()
              {
             Id = 2,
             Name = "Чулочный комбинат",
             GeoLat = 23.734417,
             GeoLong = 52.103116,
              });
              stations.Add(new Station()
              {
             Id = 3,
             Name = "Чулочный комбинат",
             GeoLat = 23.735619,
             GeoLong = 52.103343,
              });
              stations.Add(new Station()
              {
             Id = 4,
             Name = "Ковры Бреста",
             GeoLat = 23.728479,
             GeoLong = 52.100252,
              });
              stations.Add(new Station()
              {
             Id = 5,
             Name = "Ковры Бреста",
             GeoLat = 23.729604,
             GeoLong = 52.100388,
              });

              stations.Add(new Station()
              {
             Id = 6,
             Name = "Киевская",
             GeoLat = 23.721275,
             GeoLong = 52.102358,
              });
              stations.Add(new Station()
              {
             Id = 7,
             Name = "Киевская",
             GeoLat = 23.722496,
             GeoLong = 52.101452,
              });

              stations.Add(new Station()
              {
             Id = 8,
             Name = "Березовка",
             GeoLat = 23.716032,
             GeoLong = 52.114793,
              });
              stations.Add(new Station()
              {
             Id = 9,
             Name = "Березовка",
             GeoLat = 23.715971,
             GeoLong = 52.114178,
              });

              stations.Add(new Station()
              {
             Id = 10,
             Name = "Радужная",
             GeoLat = 23.712152,
             GeoLong = 52.118220,
              });

              stations.Add(new Station()
              {
             Id = 11,
             Name = "Радужная",
             GeoLat = 23.713214,
             GeoLong = 52.117169,
              });
        }
 public AdminController(IStopsRepository _repository)
 {
     repository = _repository;
 }
Exemple #8
0
 public HomeController(IStopsRepository _repository)
 {
     repository = _repository;
 }