Exemple #1
0
 public override void FinishedLaunching(MonoMac.Foundation.NSObject notification)
 {
     // Handle a Xamarin.Mac Upgrade
     AppDomain.CurrentDomain.AssemblyResolve += (object sender, ResolveEventArgs a) => {
         if (a.Name.StartsWith("MonoMac"))
         {
             return(typeof(MonoMac.AppKit.AppKitFramework).Assembly);
         }
         return(null);
     };
     game = new Stage();
     game.Run();
 }
Exemple #2
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Stage stage = new Stage()) {
         stage.Run();
     }
 }
Exemple #3
0
 static void Main()
 {
     using (var game = new Stage())
         game.Run();
 }