示例#1
0
        protected override void OnResume()
        {
            if (App.Locator.ModeZone.IsGoingBack)
            {
                Finish();
            }
            //subscribe to connection state changed event
            OnConnectionStateChanged += UpdateUIOnConnectionStateChanged;

            base.OnResume();

            //_alertsAdapter.NotifyDataSetChanged();
            _alertsAdapter              = new ListAlertModeZoneAdapter(this);
            AlertListView.Adapter       = _alertsAdapter;
            AlertListView.ChoiceMode    = ChoiceMode.Single;
            AlertListView.ItemsCanFocus = true;
            AlertListView.EmptyView     = EmptyListView;

            NextButton.Click         += OnClickNextPage;
            AddAlertTextView.Click   += OnAddAlert;
            EmptyAlertSvgImage.Click += OnAddAlert;
            App.Locator.ModeZone.WaitingForAlerts = false;
            App.Locator.ModeZone.EditingAlerts    = false;

            UpdateUI();
        }
 /// <summary>
 /// Initialize the view with the data
 /// </summary>
 private void SetDataToView()
 {
     _alertsAdapter                        = new ListAlertModeZoneAdapter(this);
     AlertListView.Adapter                 = _alertsAdapter;
     AlertListView.ChoiceMode              = ChoiceMode.Single;
     AlertListView.ItemsCanFocus           = true;
     AlertListView.EmptyView               = EmptyListView;
     App.Locator.ModeZone.WaitingForAlerts = false;
 }