Files
PowerToys/Plugins/Wox.Plugin.Program/ProgramSources/UnregisteredPrograms.cs
bao-qian 8684788f1f rename
2016-08-19 23:25:13 +01:00

26 lines
637 B
C#

using System;
using System.Collections.Generic;
using System.IO;
namespace Wox.Plugin.Program.ProgramSources
{
[Serializable]
public class UnregisteredPrograms : Win32
{
public string Location { get; set; } = "";
public override List<Program> LoadPrograms()
{
if (Directory.Exists(Location) && MaxDepth >= -1)
{
var apps = new List<Program>();
GetAppFromDirectory(apps, Location, MaxDepth);
return apps;
}
else
{
return new List<Program>();
}
}
}
}