Move ProgramSources

This commit is contained in:
Yeechan Lu 2014-03-21 04:31:42 +08:00
parent 4622c86ae1
commit 1281059076
7 changed files with 13 additions and 12 deletions

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Wox.Plugin.System
namespace Wox.Plugin.System.ProgramSources
{
[global::System.ComponentModel.Browsable(false)]
public class AppPathsProgramSource: AbstractProgramSource

View File

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
namespace Wox.Plugin.System
namespace Wox.Plugin.System.ProgramSources
{
[global::System.ComponentModel.Browsable(false)]
public class CommonStartMenuProgramSource : FileSystemProgramSource

View File

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.IO;
namespace Wox.Plugin.System
namespace Wox.Plugin.System.ProgramSources
{
public class FileSystemProgramSource : AbstractProgramSource
{

View File

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.IO;
using IniParser;
namespace Wox.Plugin.System
namespace Wox.Plugin.System.ProgramSources
{
public class PortableAppsProgramSource : AbstractProgramSource
{

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Wox.Plugin.System
namespace Wox.Plugin.System.ProgramSources
{
[global::System.ComponentModel.Browsable(false)]
public class UserStartMenuProgramSource : FileSystemProgramSource

View File

@ -9,6 +9,7 @@ using System.Text;
using System.Windows.Forms;
using Microsoft.Win32;
using Wox.Infrastructure;
using Wox.Plugin.System.ProgramSources;
namespace Wox.Plugin.System
{
@ -45,11 +46,11 @@ namespace Wox.Plugin.System
List<Program> installedList = new List<Program>();
List<IProgramSource> sources = new List<IProgramSource>();
public static Dictionary<string, Type> SourceTypes = new Dictionary<string, Type>() {
{"FileSystemProgramSource", typeof(FileSystemProgramSource)},
{"PortableAppsProgramSource", typeof(PortableAppsProgramSource)},
{"CommonStartMenuProgramSource", typeof(CommonStartMenuProgramSource)},
{"UserStartMenuProgramSource", typeof(UserStartMenuProgramSource)},
{"AppPathsProgramSource", typeof(AppPathsProgramSource)},
{"PortableAppsProgramSource", typeof(PortableAppsProgramSource)},
{"FileSystemProgramSource", typeof(FileSystemProgramSource)},
};
private PluginInitContext context;

View File

@ -51,15 +51,15 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="AppPathsProgramSource.cs" />
<Compile Include="CommonStartMenuProgramSource.cs" />
<Compile Include="PortableAppsProgramSource.cs" />
<Compile Include="ProgramSources\AppPathsProgramSource.cs" />
<Compile Include="ProgramSources\CommonStartMenuProgramSource.cs" />
<Compile Include="ProgramSources\PortableAppsProgramSource.cs" />
<Compile Include="IProgramSource.cs" />
<Compile Include="BaseSystemPlugin.cs" />
<Compile Include="BrowserBookmarks.cs" />
<Compile Include="Calculator.cs" />
<Compile Include="FileSystemProgramSource.cs" />
<Compile Include="UserStartMenuProgramSource.cs" />
<Compile Include="ProgramSources\FileSystemProgramSource.cs" />
<Compile Include="ProgramSources\UserStartMenuProgramSource.cs" />
<Compile Include="WebSearchPlugin.cs" />
<Compile Include="CMD.cs" />
<Compile Include="DirectoryIndicator.cs" />