Exemplo n.º 1
0
        public static async void ShowArrestReportList()
        {
            var reports = await ComputerReportsController.GetAllArrestReportsAsync(0, 0);

            if (reports == null)
            {
                Function.Log("Reports is null");
            }
            else if (Globals.Navigation == null)
            {
                Function.Log("Global nav is null");
            }
            else
            {
                Globals.Navigation.Push(new ArrestReportListContainer(reports));
            }
        }
Exemplo n.º 2
0
        /** Traffic Citations **/

        public static async void ShowTrafficCitationList()
        {
            var citations = await ComputerReportsController.GetAllTrafficCitationsAsync(0, 0);

            if (citations == null)
            {
                Function.Log("Citations are null");
            }
            else if (Globals.Navigation == null)
            {
                Function.Log("Global nav is null");
            }
            else
            {
                Globals.Navigation.Push(new TrafficCitationListContainer(citations));
            }
        }