Program.cs 633 B

123456789101112131415161718192021222324252627282930
  1. using Foundation;
  2. using UIKit;
  3. namespace BackgroundThreadTester
  4. {
  5. [Register("AppDelegate")]
  6. class Program : UIApplicationDelegate
  7. {
  8. private static Game1 game;
  9. internal static void RunGame()
  10. {
  11. game = new Game1();
  12. game.Run();
  13. }
  14. /// <summary>
  15. /// The main entry point for the application.
  16. /// </summary>
  17. static void Main(string[] args)
  18. {
  19. UIApplication.Main(args, null, "AppDelegate");
  20. }
  21. public override void FinishedLaunching(UIApplication app)
  22. {
  23. RunGame();
  24. }
  25. }
  26. }