#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();
}
}
///
/// The main entry point for the application.
///
static void Main(string[] args)
{
UIApplication.Main(args, null, "AppDelegate");
}
}
#else
///
/// The main entry point for the application.
///
static class Program
{
static void Main()
{
using (GameStateManagementGame game = new GameStateManagementGame())
{
game.Run();
}
}
}
#endif
#endregion
}