removed NzbDrone.Console dependency to UI components

This commit is contained in:
kay.one
2013-08-06 22:32:22 -07:00
parent d4706dd8f5
commit 7ac6d9c1f4
42 changed files with 605 additions and 246 deletions

24
NzbDrone/WindowsApp.cs Normal file
View File

@@ -0,0 +1,24 @@
using System;
using System.Windows.Forms;
using NzbDrone.SysTray;
namespace NzbDrone
{
public static class WindowsApp
{
public static void Main(string[] args)
{
try
{
var container = Host.Bootstrap.Start(args);
container.Register<ISystemTrayApp, SystemTrayApp>();
container.Resolve<ISystemTrayApp>().Start();
}
catch (Exception e)
{
var message = string.Format("{0}: {1}", e.GetType().Name, e.Message);
MessageBox.Show(text: message, buttons: MessageBoxButtons.OK, icon: MessageBoxIcon.Error, caption: "Epic Fail!");
}
}
}
}