internal async static void ShowPedView() { if (!LastSelected || !LastSelected.Validate()) { return; } try { var reports = await ComputerReportsController.GetArrestReportsForPedAsync(LastSelected); var trafficCitations = await ComputerReportsController.GetTrafficCitationsForPedAsync(LastSelected); if (trafficCitations != null) { Function.Log("Found citations for ped"); } else { Function.Log("Citations for ped are null"); } Globals.Navigation.Push(new ComputerPedViewExtended(new DetailedEntity(LastSelected, reports, trafficCitations))); } catch (Exception e) { Function.Log(e.ToString()); } }
internal async static void ShowVehicleDetails() { if (!LastSelected || !LastSelected.Validate()) { return; } var reports = await ComputerReportsController.GetArrestReportsForPedAsync(LastSelected); var trafficCitations = await ComputerReportsController.GetTrafficCitationsForPedAsync(LastSelected); Globals.Navigation.Push(new ComputerVehicleViewExtendedContainer(new DetailedEntity(LastSelected, reports, trafficCitations))); }