public override void ViewWillAppear(bool animated) { Title = Application.LocalizedString("SeekiosHelp"); base.ViewWillAppear(animated); Tableview.Source = new ListTutorialSource(); Tableview.ReloadData(); }
public void RefreshTable() { if (App.Locator.TransactionHistoric.LsOperation.Count > 0) { Tableview.Hidden = false; Tableview.ReloadData(); } else { Tableview.Hidden = true; } }
public void UpdateAlertData() { if (App.Locator.ModeZone.LsAlertsModeZone?.Count > 0) { Tableview.ReloadData(); Tableview.Hidden = false; } else { Tableview.Hidden = true; } InitialiseAllStrings(); }
public void SetDataAndStyleToView() { DefaultListSeekiosText.SetTitle(Application.LocalizedString("NoSeekios"), UIControlState.Normal); App.Locator.BaseMap.InitialiseLsAlertState(); if (App.CurrentUserEnvironment.LsSeekios.Count > 0) { Tableview.Hidden = false; Tableview.DataSource = new ListSeekiosSource(this); Tableview.Delegate = new ListSeekiosTableDelegate(this); Tableview.ReloadData(); } else { Tableview.Hidden = true; } }
private void App_SeekiosChanged(object sender, int e) { InvokeOnMainThread(() => { _seekiosSelected = App.CurrentUserEnvironment.LsSeekios.FirstOrDefault(f => f.UIdSeekios == App.Locator.DetailSeekios.SeekiosSelected.UIdSeekios); if (_seekiosSelected.LastKnownLocation_latitude == App.DefaultLatitude && _seekiosSelected.LastKnownLocation_longitude == App.DefaultLongitude) { _firstInitialise = true; } else { _firstInitialise = false; } if (_firstInitialise) { _firstInitialise = false; Tableview.Source = new DetailSeekiosSource(this, _seekiosSelected); Tableview.ReloadData(); if (_seekiosSelected.LastKnownLocation_dateLocationCreation.HasValue && _seekiosSelected.LastKnownLocation_dateLocationCreation.Value.Year != 1) { SeekiosLastPositionLabel.Text = _seekiosSelected.LastKnownLocation_dateLocationCreation.Value.FormatDateFromNow(); } else { Tableview.ScrollToRow(NSIndexPath.FromRowSection(0, 0) , UITableViewScrollPosition.Top, false); SeekiosLastPositionLabel.Text = Application.LocalizedString("NoPosition"); } } SetDataAndStyleToView(); UpdateBatteryView(); }); }