AppDelegate.cs 411 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Drawing;
  3. using MonoMac.Foundation;
  4. using MonoMac.AppKit;
  5. using MonoMac.ObjCRuntime;
  6. namespace MediaBrowser.Server.Mac
  7. {
  8. public partial class AppDelegate : NSApplicationDelegate
  9. {
  10. public AppDelegate ()
  11. {
  12. }
  13. public override void FinishedLaunching (NSObject notification)
  14. {
  15. new MenuBarIcon (MainClass.AppHost.LogManager.GetLogger("Tray"))
  16. .ShowIcon ();
  17. }
  18. }
  19. }