Ejemplo n.º 1
0
        protected override void Establish_context()
        {
            base.Establish_context();

            _locationRepository = new OrmMapLocationRepository();

            _expected = new List<MapLocation>
            {
                new MapLocation {Longitude = 1, Latitude = 2},
                new MapLocation {Longitude = 32, Latitude = 36}
            };
        }
Ejemplo n.º 2
0
        private void MapsClicked(object sender, EventArgs e)
        {
            //var intent = new Intent(this, typeof(MapsActivity));
            //StartActivity(intent);

            _repository = new OrmMapLocationRepository();

            _mapLocations = _repository.GetLocations();

            Log.Info("Test1", "Locations fetched.");
            try
            {
                _locationTextView.Text = _mapLocations.FirstOrDefault().ID.ToString();
            }
            catch (Exception)
            {
                Log.Info("Test1", "No Locations in _mapLocations");
            }
        }