static void PresentResultPopup(string content, List <UIImage> images)
        {
            var popover = new PopupController(content, images);

            WorkflowController.DismissViewController(false, null);

            MainController.PresentViewController(popover, true, delegate
            {
                // Remove static instance of front scan after presented
                front = null;
                popover.Content.CloseButton.Click += delegate
                {
                    popover.Dismiss();
                };
            });
        }
예제 #2
0
        public static void ShowPopup(UIViewController controller, string text, Action onClose = null)
        {
            if (IsPresented)
            {
                return;
            }

            IsPresented = true;

            var images  = new List <UIImage>();
            var popover = new PopupController(text, images);

            controller.PresentViewController(popover, true, delegate
            {
                popover.Content.CloseButton.Click += delegate
                {
                    IsPresented = false;
                    popover.Dismiss();
                    onClose?.Invoke();
                };
            });
        }