Refactored BacklogProvider

Fixed some issues with root folder and settings controller
This commit is contained in:
Keivan 2011-03-28 14:57:06 -07:00
commit 613a49c3ea
5 changed files with 107 additions and 98 deletions

View file

@ -7,6 +7,7 @@
#if DEBUG
using System;
using System.Collections.Generic;
using EnvDTE;
using EnvDTE80;
namespace NzbDrone
@ -21,6 +22,8 @@ namespace NzbDrone
ManagedAndNative
}
private enum AttachResult
{
Attached,
@ -40,7 +43,7 @@ namespace NzbDrone
}
#region private
#region private
private readonly Dictionary<AttachType, string> _attachTypesMap;
private readonly DTE2 _dte;
@ -49,7 +52,7 @@ namespace NzbDrone
#endregion
#region ctor
#region ctor
private ProcessAttacher(DTE2 dte, string processName, int waitTimeout)
{
@ -63,7 +66,7 @@ namespace NzbDrone
#endregion
#region private methods
#region private methods
private AttachResult Attach(AttachType attachType)
{
@ -130,7 +133,7 @@ namespace NzbDrone
#endregion
#region public methods
#region public methods
public void OptimisticAttachManaged()