Exemplo n.º 1
0
 public void RecentSet(BaseUIViewController controller)
 {
     CoreUtility.ExecuteMethod("RecentClearIfMatch", delegate()
     {
         RecentController = controller;
     });
 }
Exemplo n.º 2
0
 /// <summary>
 /// Pushes to current root nav controller, presents if one was not found.
 /// </summary>
 public static bool PushToRootNavigationController(this IViewPlatform platform, UIViewController controller, bool animated)
 {
     return(CoreUtility.ExecuteFunction("PushToRootNavigationController", delegate()
     {
         UINavigationController navController = platform.GetRootNavigationController();
         if (navController != null)
         {
             navController.PushViewController(controller, animated);
             return true;
         }
         else
         {
             BaseUIViewController rootBaseController = platform.GetRootViewController() as BaseUIViewController;
             if (rootBaseController != null)
             {
                 rootBaseController.PresentViewControllerWithDisposeOnReturn(controller, animated, null);
                 return true;
             }
             UIViewController rootController = platform.GetRootViewController();
             if (rootController != null)
             {
                 rootController.PresentViewController(controller, animated, null);
                 return true;
             }
         }
         return false;
     }));
 }
Exemplo n.º 3
0
 public void RecentClearIfMatch(BaseUIViewController controller)
 {
     CoreUtility.ExecuteMethod("RecentClearIfMatch", delegate()
     {
         if (RecentController == controller)
         {
             RecentController = null;
         }
     });
 }