main.cs 992 B

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