2013-05-04 21:09:25 +00:00
|
|
|
|
using System.Windows.Forms;
|
2013-01-30 02:21:45 +00:00
|
|
|
|
|
2013-05-04 21:09:25 +00:00
|
|
|
|
namespace NzbDrone.SysTray
|
2013-01-30 02:21:45 +00:00
|
|
|
|
{
|
|
|
|
|
public class SysTrayProvider
|
|
|
|
|
{
|
|
|
|
|
private readonly SysTrayApp _sysTrayApp;
|
|
|
|
|
|
|
|
|
|
public SysTrayProvider(SysTrayApp sysTrayApp)
|
|
|
|
|
{
|
|
|
|
|
_sysTrayApp = sysTrayApp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public SysTrayProvider()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public virtual void Start()
|
|
|
|
|
{
|
|
|
|
|
_sysTrayApp.Create();
|
|
|
|
|
|
|
|
|
|
Application.Run(_sysTrayApp);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|