void InitializeViewModel() { Title = "Ubicación"; Catalogs.InitEntities(); Entities = Catalogs.Entities; if (!String.IsNullOrEmpty(Settings.CurrentRecordItem)) { RecordItem item = JsonConvert.DeserializeObject <RecordItem>(Settings.CurrentRecordItem); LocationDetails = item.LocationDetails; if (item.Entity != null) { SelectedEntity = Catalogs.GetEntityValue(item.Entity); } if (item.Municipality != null) { SelectedMunicipality = Catalogs.GetMunicipalityValue(item.Municipality); } if (item.Locality != null) { SelectedLocality = Catalogs.GetLocalityValue(item.Locality); } } NextCommand = new Command(async() => await Next()); }