public override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            this.RetainInstance = true;
            if (savedInstanceState != null)
            {
                var latitude  = savedInstanceState.GetDouble(KeyGeoLocationLatitude);
                var longitude = savedInstanceState.GetDouble(KeyGeoLocationLongitude);
                GeoLocation = new GeoLocation
                {
                    Latitude  = latitude,
                    Longitude = longitude
                };

                var exhibitId = savedInstanceState.GetString(KeyExhibitSetId);
                ExhibitSet = ExhibitManager.GetExhibitSet(exhibitId);
            }
        }
 public ExhibitsOverviewViewModel(string exhibitSetId) : this(ExhibitManager.GetExhibitSet(exhibitSetId))
 {
 }
Exemplo n.º 3
0
 /// <summary>
 ///     Since the ExtendedLocationListener will be created as a singleton from a static context,
 ///     it can't get any attributes during creation and neither during getting an instance of it.
 ///     Thus, the programmer has to make sure to give the ExtendedLocationListener a context
 ///     right after callinge getInstance(), otherwise the class is useless.
 /// </summary>
 private ExtendedLocationListener()
 {
     exhibitSet      = ExhibitManager.GetExhibitSet();
     checkedExhibits = new List <string> ();
 }