AppDelegate.cs 476 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Drawing;
  3. using MonoMac.Foundation;
  4. using MonoMac.AppKit;
  5. using MonoMac.ObjCRuntime;
  6. namespace BlackJack.MacOS
  7. {
  8. public partial class AppDelegate : NSApplicationDelegate
  9. {
  10. MainWindowController mainWindowController;
  11. public AppDelegate ()
  12. {
  13. }
  14. public override void FinishedLaunching (NSObject notification)
  15. {
  16. mainWindowController = new MainWindowController ();
  17. mainWindowController.Window.MakeKeyAndOrderFront (this);
  18. }
  19. }
  20. }