PowerToys/Plugins/Wox.Plugin.Program/ProgramSources/UserStartMenuProgramSource.cs

27 lines
682 B
C#
Raw Normal View History

using System;
2016-01-07 05:34:42 +08:00
using System.ComponentModel;
namespace Wox.Plugin.Program.ProgramSources
{
[Serializable]
2016-01-07 05:34:42 +08:00
[Browsable(false)]
public class UserStartMenuProgramSource : FileSystemProgramSource
{
public UserStartMenuProgramSource(string[] suffixes)
: base(Environment.GetFolderPath(Environment.SpecialFolder.Programs), suffixes)
{
}
2014-03-23 16:17:41 +08:00
public UserStartMenuProgramSource(ProgramSource source)
: this(source.Suffixes)
{
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;
}
}
}