mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-15 21:06:20 -04:00
26 lines
483 B
C#
26 lines
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);
|
|
}
|
|
}
|
|
} |