123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using MonoTouch.Foundation;
- using MonoTouch.UIKit;
- namespace Waypoint
- {
- #region Entry Point
- #if IPHONE
- [Register("AppDelegate")]
- class Program : UIApplicationDelegate
- {
- WaypointSample game;
- public override void FinishedLaunching(UIApplication app)
- {
- // Fun begins..
- game = new WaypointSample();
- 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 (WaypointSample game = new WaypointSample())
- {
- game.Run();
- }
- }
- }
- #endif
- #endregion
- }
|