MainWindowController.cs 896 B

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