mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 19:49:15 +08:00
b22a4501cc
1. introduce variable 2. part of #389 3. refactoring program suffix in program plugin 4. 全局变量一时爽,代码重构火葬场
27 lines
682 B
C#
27 lines
682 B
C#
using System;
|
|
using System.ComponentModel;
|
|
|
|
namespace Wox.Plugin.Program.ProgramSources
|
|
{
|
|
[Serializable]
|
|
[Browsable(false)]
|
|
public class UserStartMenuProgramSource : FileSystemProgramSource
|
|
{
|
|
public UserStartMenuProgramSource(string[] suffixes)
|
|
: base(Environment.GetFolderPath(Environment.SpecialFolder.Programs), suffixes)
|
|
{
|
|
}
|
|
|
|
public UserStartMenuProgramSource(ProgramSource source)
|
|
: this(source.Suffixes)
|
|
{
|
|
BonusPoints = source.BonusPoints;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return typeof(UserStartMenuProgramSource).Name;
|
|
}
|
|
}
|
|
}
|