Пример #1
0
        public async void NavigateToDetailsPane(object sender, IncidentSelectedEventArgs args)
        {
            // always show tickets
            SelectedIncident      = IncidentList.FirstOrDefault(x => x.Id == args.IncidentId);
            _selectedIncidentIcon = await _mapService.UpdateSelectedItem(SelectedIncident);

            ToggleDetailsPane(args.IncidentId, args.ShowDetails, true);
        }
Пример #2
0
        private async void OnIncidentIconSelected(object sender, IncidentSelectedEventArgs e)
        {
            if (_isMainViewZoom)
            {
                SelectedIncident = e.ShowDetails ? IncidentList.FirstOrDefault(x => x.Id == e.IncidentId) : null;
                if (SelectedIncident != null)
                {
                    _selectedIncidentIcon = await _mapService.UpdateSelectedItem(SelectedIncident);

                    _selectedIncidentIcon.IncidentIconNavigate += OnEnrouteToIncident;

                    SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible;
                    SystemNavigationManager.GetForCurrentView().BackRequested += OnIncidentListBackRequested;
                }

                ToggleDetailsPane(e.IncidentId, e.ShowDetails, true);
                if (!_isEnrouteToIncident)
                {
                    NavigateToIncident();
                }
            }
        }