This commit is contained in:
bao-qian
2016-08-19 23:24:21 +01:00
parent 69c00d272b
commit 9e033d1673
16 changed files with 99 additions and 53 deletions

View File

@@ -7,7 +7,7 @@ using Microsoft.Win32;
namespace Wox.Plugin.Program.ProgramSources
{
[Serializable]
public class AppPathsProgramSource : Win32
public class AppPathsPrograms : Win32
{
public override List<Program> LoadPrograms()
{

View File

@@ -1,14 +1,11 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Wox.Infrastructure.Exception;
using Wox.Infrastructure.Logger;
namespace Wox.Plugin.Program.ProgramSources
{
[Serializable]
public class FileSystemProgramSource : Win32
public class UnregisteredPrograms : Win32
{
public string Location { get; set; } = "";

View File

@@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
namespace Wox.Plugin.Program.ProgramSources
{

View File

@@ -1,9 +1,5 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Wox.Plugin.Program.ProgramSources
{

View File

@@ -5,18 +5,18 @@ using System.Linq;
using System.Runtime.InteropServices;
using System.Security.Principal;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using Windows.ApplicationModel;
using Windows.Management.Deployment;
using Windows.ApplicationModel.Core;
using Windows.Foundation;
using Windows.Management.Deployment;
using Windows.Storage.Streams;
using AppxPackaing;
using Shell;
using Wox.Infrastructure.Logger;
using IStream = AppxPackaing.IStream;
using Size = Windows.Foundation.Size;
using Rect = System.Windows.Rect;
namespace Wox.Plugin.Program.ProgramSources
{
@@ -26,14 +26,12 @@ namespace Wox.Plugin.Program.ProgramSources
public string FullName { get; }
public string FamilyName { get; }
public string DisplayName { get; set; }
public string Description { get; set; }
public string PublisherDisplayName { get; set; }
public string Location { get; set; }
public Application[] Apps { get; set; }
public Package Package { get; }
public int Score { get; set; }
@@ -96,7 +94,6 @@ namespace Wox.Plugin.Program.ProgramSources
}
}
private void InitializeAppDisplayInfo(Package package)
{
IReadOnlyList<AppListEntry> apps;
@@ -328,12 +325,12 @@ namespace Wox.Plugin.Program.ProgramSources
private enum Stgm : uint
{
Read = 0x0,
ShareExclusive = 0x10,
ShareExclusive = 0x10
}
private enum Hresult : uint
{
Ok = 0x0000,
Ok = 0x0000
}
[DllImport("shlwapi.dll", CharSet = CharSet.Unicode)]

View File

@@ -3,8 +3,6 @@ using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Wox.Infrastructure.Exception;
using Wox.Infrastructure.Logger;