mirror of https://github.com/Radarr/Radarr
25 lines
457 B
C#
25 lines
457 B
C#
using System.Windows.Forms;
|
|
|
|
namespace NzbDrone.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);
|
|
}
|
|
}
|
|
} |