#region Using Statements using System; using System.Collections.Generic; using System.Linq; #if MONOMAC using MonoMac.Foundation; using MonoMac.AppKit; using MonoMac.ObjCRuntime; #endif #endregion namespace GooCursor { #if MONOMAC static class Program { /// /// The main entry point for the application. /// static void Main (string[] args) { NSApplication.Init (); using (var p = new NSAutoreleasePool ()) { NSApplication.SharedApplication.Delegate = new AppDelegate(); NSApplication.Main(args); } } } class AppDelegate : NSApplicationDelegate { Game1 game; public override void FinishedLaunching (MonoMac.Foundation.NSObject notification) { game = new Game1(); game.Run(); } public override bool ApplicationShouldTerminateAfterLastWindowClosed (NSApplication sender) { return true; } } #else static class Program { private static Game1 game; /// /// The main entry point for the application. /// [STAThread] static void Main() { game = new Game1(); game.Run(); } } #endif }