12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #region Using Statements
- using System;
- #if IPHONE
- using MonoTouch.Foundation;
- using MonoTouch.UIKit;
- using Microsoft.Xna;
- using Microsoft.Xna.Framework.Media;
- #else
- #endif
- #endregion
- namespace Microsoft.Xna.Samples.GameStateManagement
- {
- #region Entry Point
- #if IPHONE
- [Register("AppDelegate")]
- class Program : UIApplicationDelegate
- {
- public override void FinishedLaunching(UIApplication app)
- {
- // Fun begins..
- using (GameStateManagementGame game = new GameStateManagementGame())
- {
- game.Run();
- }
- }
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- static void Main(string[] args)
- {
- UIApplication.Main(args, null, "AppDelegate");
- }
- }
- #else
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- static class Program
- {
- static void Main()
- {
- using (GameStateManagementGame game = new GameStateManagementGame())
- {
- game.Run();
- }
- }
- }
- #endif
- #endregion
- }
|