public void ShowLoadingOverlay()
 {
     var bounds = UIScreen.MainScreen.Bounds;
     if (UIApplication.SharedApplication.StatusBarOrientation == UIInterfaceOrientation.LandscapeLeft || UIApplication.SharedApplication.StatusBarOrientation == UIInterfaceOrientation.LandscapeRight)
         bounds.Size = new CGSize(bounds.Size.Height, bounds.Size.Width);
     LoadingOverlay = new LoadingOverlay(bounds, "Loading...");
     View.Add(LoadingOverlay);
 }
        public void ShowLoadingOverlay()
        {
            var bounds = UIScreen.MainScreen.Bounds;

            if (UIApplication.SharedApplication.StatusBarOrientation == UIInterfaceOrientation.LandscapeLeft || UIApplication.SharedApplication.StatusBarOrientation == UIInterfaceOrientation.LandscapeRight)
            {
                bounds.Size = new CGSize(bounds.Size.Height, bounds.Size.Width);
            }
            LoadingOverlay = new LoadingOverlay(bounds, "Loading...");
            View.Add(LoadingOverlay);
        }