private void DismissInternal()
 {
     UIView.Animate(0.15f, 0, UIViewAnimationOptions.CurveEaseIn | UIViewAnimationOptions.AllowUserInteraction,
                    () => {
         var small = this.HudView.Transform;
         small.Scale(0.8f, 0.8f);
         SharedView.HudView.Transform = small;
         SharedView.Alpha             = 0;
     },
                    () => {
         if (SharedView.Alpha == 0)
         {
             NSNotificationCenter.DefaultCenter.RemoveObserver(SharedView);
             overlayWindow.Dispose();
             overlayWindow = null;
             sharedView.Dispose();
             sharedView = null;
         }
         foreach (UIWindow w in UIApplication.SharedApplication.Windows)
         {
             if (w.WindowLevel == UIWindow.LevelNormal)
             {
                 w.MakeKeyWindow();
                 break;
             }
         }
     });
 }
        private void DismissInternal()
        {
            UIView.Animate(0.15f, 0, UIViewAnimationOptions.CurveEaseIn | UIViewAnimationOptions.AllowUserInteraction,
                           ()=>{

                                var small = this.HudView.Transform;
                                small.Scale(0.8f, 0.8f);
                                SharedView.HudView.Transform = small;
                                SharedView.Alpha = 0;
                            },
                            ()=>{
                                if (SharedView.Alpha == 0) {
                                    NSNotificationCenter.DefaultCenter.RemoveObserver(SharedView);
                                    overlayWindow.Dispose();
                                    overlayWindow = null;
                                    sharedView.Dispose();
                                    sharedView = null;
                                }
                                foreach (UIWindow w in UIApplication.SharedApplication.Windows) {
                                    if (w.WindowLevel == UIWindow.LevelNormal) {
                                        w.MakeKeyWindow();
                                        break;
                                    }
                                }
                            });
        }