Merge models

This commit is contained in:
bao-qian
2016-08-20 01:17:28 +01:00
parent 0c0ec29821
commit ee542f0fec
13 changed files with 131 additions and 166 deletions

View File

@@ -1,11 +1,11 @@
using System.Collections.Generic;
using Wox.Plugin.Program.ProgramSources;
using Wox.Plugin.Program.Programs;
namespace Wox.Plugin.Program
{
public class Settings
{
public List<UnregisteredPrograms> ProgramSources { get; set; } = new List<UnregisteredPrograms>();
public List<ProgramSource> ProgramSources { get; set; } = new List<ProgramSource>();
public string[] ProgramSuffixes { get; set; } = {"bat", "appref-ms", "exe", "lnk"};
public bool EnableStartMenuSource { get; set; } = true;
@@ -13,5 +13,11 @@ namespace Wox.Plugin.Program
public bool EnableRegistrySource { get; set; } = true;
internal const char SuffixSeperator = ';';
public class ProgramSource
{
public string Location { get; set; }
public int MaxDepth { get; set; }
}
}
}