public async void removeBottomSheetWhenViewingAUser()
        {
            //Get rid of bottom sheet if its there
            var window = UIApplication.SharedApplication.KeyWindow;
            var rootVC = window.RootViewController;

            if (rootVC is BottomSheetViewController)
            {
                BottomSheetViewController bottomSheet = (BottomSheetViewController)rootVC;
                await bottomSheet.slideMenuToLeft();

                bottomSheet.StopTimers();
                bottomSheet.Dispose();
                bottomSheet = null;
                window.RootViewController = rootVC.ChildViewControllers[0];
            }
            else
            {
                PotentialMatchesBottomSheetViewController matchesSheet = (PotentialMatchesBottomSheetViewController)rootVC;
                await matchesSheet.slideMenuToLeft();

                matchesSheet.StopTimers();
                matchesSheet.Dispose();
                matchesSheet = null;
                window.RootViewController = rootVC.ChildViewControllers[0];
            }
        }
        void BeginTransferProcess(UIAlertAction obj)
        {
            Console.WriteLine("LET US BEGIN.");

            //Update bottom sheet to show In transfer - empty table and update countdown

            owner.timeRemainingLabel.Text             = "IN TRANSIT";
            owner.timeRemainingLabel.TextColor        = UIColor.Orange;
            owner.potentialRecipientsLabel.Text       = "This organ is currently in transit.";
            owner.potentialRecipientsTableView.Hidden = true;

            //Update map to get rid of overlays and recipients
            customMapRenderer.removeOverlays();
            customMapRenderer.ClearAllReceivers();
            owner.StopTimers();

            currentOrgan.inTransfer = 1;


            //Insert transfer into database and add new helicopter.
            ClinicianMapPage parent = (ClinicianMapPage)formsMap.Parent.Parent;

            parent.NewTransfer(currentOrgan, selectedRecipient, customPin.Position);
        }
        public async void removeBottomSheet(bool isPresented, MasterPageItem selectedMenuItem)
        {
            UIApplication.SharedApplication.InvokeOnMainThread(async() =>
            {
                var window = UIApplication.SharedApplication.KeyWindow;
                var rootVC = window.RootViewController;

                if (!isPresented)
                {
                    if (selectedMenuItem.TargetType != typeof(ClinicianMapPage))
                    {
                        if (rootVC is BottomSheetViewController)
                        {
                            currentBottomSheet.StopTimers();
                            currentBottomSheet.Dispose();
                            currentBottomSheet        = null;
                            window.RootViewController = rootVC.ChildViewControllers[0];
                        }
                        else if (rootVC is PotentialMatchesBottomSheetViewController)
                        {
                            currentPotentialMatchesBottomSheet.StopTimers();
                            currentPotentialMatchesBottomSheet.Dispose();
                            currentPotentialMatchesBottomSheet = null;
                            window.RootViewController          = rootVC.ChildViewControllers[0];
                        }
                        else
                        {
                            return;
                        }
                    }
                    else
                    {
                        if (currentBottomSheet != null)
                        {
                            window.RootViewController = currentBottomSheet;
                            await currentBottomSheet.slideMenuBackInFromRight();
                        }
                        else if (currentPotentialMatchesBottomSheet != null)
                        {
                            window.RootViewController = currentPotentialMatchesBottomSheet;
                            await currentPotentialMatchesBottomSheet.slideMenuBackInFromRight();
                        }
                        else
                        {
                            return;
                        }
                    }
                }
                else
                {
                    if (rootVC is BottomSheetViewController)
                    {
                        BottomSheetViewController bottomSheet = (BottomSheetViewController)rootVC;
                        currentBottomSheet = bottomSheet;
                        await bottomSheet.slideMenuToRight();
                    }
                    else if (rootVC is PotentialMatchesBottomSheetViewController)
                    {
                        PotentialMatchesBottomSheetViewController matchesSheet = (PotentialMatchesBottomSheetViewController)rootVC;
                        currentPotentialMatchesBottomSheet = matchesSheet;
                        await matchesSheet.slideMenuToRight();
                    }
                    else
                    {
                        //if (currentBottomSheet != null)
                        //{
                        //    currentBottomSheet.StopTimers();
                        //    currentBottomSheet.Dispose();
                        //    currentBottomSheet = null;
                        //    window.RootViewController = rootVC.ChildViewControllers[0];
                        //}
                        //else if (currentPotentialMatchesBottomSheet != null)
                        //{
                        //    currentPotentialMatchesBottomSheet.StopTimers();
                        //    currentPotentialMatchesBottomSheet.Dispose();
                        //    currentPotentialMatchesBottomSheet = null;
                        //    window.RootViewController = rootVC.ChildViewControllers[0];
                        //}
                        //else
                        //{
                        return;
                        //}
                    }
                }
            });
        }