Main-iOS.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using MonoTouch.Foundation;
  5. using MonoTouch.UIKit;
  6. namespace TiledSprites
  7. {
  8. #region Entry Point
  9. #if IPHONE
  10. [Register("AppDelegate")]
  11. class Program : UIApplicationDelegate
  12. {
  13. public override void FinishedLaunching(UIApplication app)
  14. {
  15. // Fun begins..
  16. using (TiledSpritesSample game = new TiledSpritesSample())
  17. {
  18. game.Run();
  19. }
  20. }
  21. /// <summary>
  22. /// The main entry point for the application.
  23. /// </summary>
  24. static void Main(string[] args)
  25. {
  26. UIApplication.Main(args, null, "AppDelegate");
  27. }
  28. }
  29. #else
  30. /// <summary>
  31. /// The main entry point for the application.
  32. /// </summary>
  33. static class Program
  34. {
  35. static void Main()
  36. {
  37. using (TiledSpritesSample game = new TiledSpritesSample())
  38. {
  39. game.Run();
  40. }
  41. }
  42. }
  43. #endif
  44. #endregion
  45. }