Program.cs 646 B

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