2014-03-19 04:05:27 +08:00
|
|
|
|
using System;
|
2016-01-07 05:34:42 +08:00
|
|
|
|
using System.ComponentModel;
|
2014-03-19 04:05:27 +08:00
|
|
|
|
|
2015-01-03 15:20:34 +08:00
|
|
|
|
namespace Wox.Plugin.Program.ProgramSources
|
2014-03-19 04:05:27 +08:00
|
|
|
|
{
|
2014-12-15 22:58:49 +08:00
|
|
|
|
[Serializable]
|
2016-01-07 05:34:42 +08:00
|
|
|
|
[Browsable(false)]
|
2014-03-19 04:05:27 +08:00
|
|
|
|
public class UserStartMenuProgramSource : FileSystemProgramSource
|
|
|
|
|
{
|
2016-03-28 10:09:57 +08:00
|
|
|
|
public UserStartMenuProgramSource(string[] suffixes)
|
|
|
|
|
: base(Environment.GetFolderPath(Environment.SpecialFolder.Programs), suffixes)
|
2014-03-19 04:05:27 +08:00
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2014-03-23 16:17:41 +08:00
|
|
|
|
public UserStartMenuProgramSource(ProgramSource source)
|
2016-03-28 10:09:57 +08:00
|
|
|
|
: this(source.Suffixes)
|
2014-03-19 04:05:27 +08:00
|
|
|
|
{
|
2016-01-07 05:34:42 +08:00
|
|
|
|
BonusPoints = source.BonusPoints;
|
2014-03-19 20:16:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return typeof(UserStartMenuProgramSource).Name;
|
2014-03-19 04:05:27 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|