main.cs 969 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. private AlienGame game;
  17. public override void FinishedLaunching (UIApplication app)
  18. {
  19. // Fun begins..
  20. game = new AlienGame();
  21. game.Run();
  22. //MediaLibrary lib = new MediaLibrary();
  23. //object result = lib.Playlists;
  24. }
  25. static void Main (string [] args)
  26. {
  27. UIApplication.Main (args,null,"AppDelegate");
  28. }
  29. }
  30. #else
  31. static class Program
  32. {
  33. /// <summary>
  34. /// The main entry point for the application.
  35. /// </summary>
  36. static void Main(string[] args)
  37. {
  38. using (AlienGame game = new AlienGame())
  39. {
  40. game.Run();
  41. }
  42. }
  43. }
  44. #endif
  45. }