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); }
private void OnIncidentNavigationRequest(object sender, IncidentSelectedEventArgs e) { var incident = FormsMap.Incidents.FirstOrDefault(i => i.Id == e.IncidentId); if (incident != null) { OnNavigationRequested(incident); } }
private void OnIncidentDetailsNavigated(object sender, IncidentSelectedEventArgs args) { if (args.ShowDetails == false) { _isMainViewZoom = true; } else { _isMainViewZoom = false; _isEnrouteToIncident = false; } ToggleDetailsPane(args.IncidentId, args.ShowDetails, true); }
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(); } } }
private void OnIncidentPanelClosed(object sender, IncidentSelectedEventArgs e) { FormsMap.CurrentIncident = null; DismissCurrentIncidentPanel(); }
public void OnEnrouteToIncident(object sender, IncidentSelectedEventArgs e) { _mapService.MockTravelingToCurrentDestination(SelectedIncident); _isEnrouteToIncident = true; }