1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-24 16:53:54 +00:00
Sonarr/NzbDrone.Common/SysTray/SysTrayProvider.cs
Mark McDowall 08e7490ac5 Re-fix for hidden console CPU + added tray icon
New: Tray Icon visible when running without console window
2013-01-29 18:23:17 -08:00

26 lines
No EOL
483 B
C#

using System.Linq;
using System.Windows.Forms;
namespace NzbDrone.Common.SysTray
{
public class SysTrayProvider
{
private readonly SysTrayApp _sysTrayApp;
public SysTrayProvider(SysTrayApp sysTrayApp)
{
_sysTrayApp = sysTrayApp;
}
public SysTrayProvider()
{
}
public virtual void Start()
{
_sysTrayApp.Create();
Application.Run(_sysTrayApp);
}
}
}