public override void ViewWillAppear(bool animated)
 {
     Title = Application.LocalizedString("SeekiosHelp");
     base.ViewWillAppear(animated);
     Tableview.Source = new ListTutorialSource();
     Tableview.ReloadData();
 }
Beispiel #2
0
 public void RefreshTable()
 {
     if (App.Locator.TransactionHistoric.LsOperation.Count > 0)
     {
         Tableview.Hidden = false;
         Tableview.ReloadData();
     }
     else
     {
         Tableview.Hidden = true;
     }
 }
Beispiel #3
0
 public void UpdateAlertData()
 {
     if (App.Locator.ModeZone.LsAlertsModeZone?.Count > 0)
     {
         Tableview.ReloadData();
         Tableview.Hidden = false;
     }
     else
     {
         Tableview.Hidden = true;
     }
     InitialiseAllStrings();
 }
Beispiel #4
0
        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();
            });
        }