/// <summary> /// Initializes a new instance of the <see cref="Tray"/> class. /// </summary> /// <param name="window">TrayMessageWindow to use as a message handler.</param> public Tray(TrayMessageWindow window) { SetupMenu(false); messageWindow = window; notifyIcon = new NotifyIconCustom(messageWindow.GetHandle(), ProductConstants.DefaultSystemTrayTitle); // Setup hook delegate for outside clicks mouseHookDelegate = new MouseHookDelegate(MouseHookHandler); }