/// <summary> /// Initialise la vue /// </summary> private void SetDataToView() { //If no position yet, we block mode configurations if (_seekiosSelected.LastKnownLocation_latitude == App.DefaultLatitude && _seekiosSelected.LastKnownLocation_longitude == App.DefaultLongitude) { ModeLinearLayout.Enabled = false; ModeLayoutSvgImageView.SetSvg(this, Resource.Drawable.Pin, "62da73=999999"); } else { ModeLinearLayout.Enabled = true; ModeLayoutSvgImageView.SetSvg(this, Resource.Drawable.Pin, "999999=62da73"); } InitialiseSeekiosInformation(); InitialiseBatteryInformation(); InitialiseInformationLayout(); InitialiseCreditsInformation(); }
private void SetDataToView() { // If no position yet, we block mode configurations if (_seekiosSelected == null) { _seekiosSelected = App.Locator.DetailSeekios.SeekiosSelected; } if (_seekiosSelected.LastKnownLocation_latitude == App.DefaultLatitude && _seekiosSelected.LastKnownLocation_longitude == App.DefaultLongitude) { ModeLinearLayout.Enabled = false; ModeLayoutSvgImageView.SetSvg(this, Resource.Drawable.SelectMode, "62da73=999999"); } else { ModeLinearLayout.Enabled = true; ModeLayoutSvgImageView.SetSvg(this, Resource.Drawable.SelectMode, "999999=62da73"); } var _seekiosOnDemand = App.Locator.Map.LsSeekiosOnDemand.FirstOrDefault(x => x.Seekios.Idseekios == _seekiosSelected.Idseekios); if (_seekiosOnDemand != null) { _seekiosOnDemand.OnSuccess = null; _seekiosOnDemand.OnSuccess += () => { InitialiseSeekiosInformation(); }; } InitialiseSeekiosInformation(); InitialiseBatteryInformation(); //InitialiseInformationLayout(); RefreshDisplayedCreditCount(); ModeInformationLayout.Visibility = ViewStates.Gone; FreeCreditReloadDateTextView.Text = string.Format(Resources.GetString(Resource.String.detailSeekios_freeCreditsReloadDate) , CreditHelper.CalculateNextReload()); }