MainWindowController.cs 890 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using MonoMac.Foundation;
  5. using MonoMac.AppKit;
  6. namespace BlackJack.MacOS
  7. {
  8. public partial class MainWindowController : MonoMac.AppKit.NSWindowController
  9. {
  10. #region Constructors
  11. // Called when created from unmanaged code
  12. public MainWindowController (IntPtr handle) : base (handle)
  13. {
  14. Initialize ();
  15. }
  16. // Called when created directly from a XIB file
  17. [Export ("initWithCoder:")]
  18. public MainWindowController (NSCoder coder) : base (coder)
  19. {
  20. Initialize ();
  21. }
  22. // Call to load from the XIB/NIB file
  23. public MainWindowController () : base ("MainWindow")
  24. {
  25. Initialize ();
  26. }
  27. // Shared initialization code
  28. void Initialize ()
  29. {
  30. }
  31. #endregion
  32. //strongly typed window accessor
  33. public new MainWindow Window {
  34. get {
  35. return (MainWindow)base.Window;
  36. }
  37. }
  38. }
  39. }