Re-fix for hidden console CPU + added tray icon

New: Tray Icon visible when running without console window
This commit is contained in:
Mark McDowall 2013-01-29 18:21:45 -08:00
commit 08e7490ac5
7 changed files with 133 additions and 5 deletions

View file

@ -1,17 +1,22 @@
using System;
using System.Diagnostics;
using System.IO;
using System.Threading;
namespace NzbDrone.Common
{
public class ConsoleProvider
{
public static bool IsConsoleApplication
{
get { return Console.In != StreamReader.Null; }
}
public virtual void WaitForClose()
{
while (true)
{
Console.ReadLine();
Thread.Sleep(250);
}
}