Fix issues in ControlPanel plugin.

This commit is contained in:
qianlifeng
2014-07-18 14:09:52 +08:00
parent 3cfa4f9cb7
commit 7be02731ee
4 changed files with 315 additions and 37 deletions

View File

@@ -0,0 +1,25 @@
using System.Diagnostics;
using System.Drawing;
namespace Wox.Plugin.SystemPlugins.ControlPanel
{
//from:https://raw.githubusercontent.com/CoenraadS/Windows-Control-Panel-Items
public class ControlPanelItem
{
public string LocalizedString { get; private set; }
public string InfoTip { get; private set; }
public string ApplicationName { get; private set; }
public ProcessStartInfo ExecutablePath { get; private set; }
public Icon Icon { get; private set; }
public int Score { get; set; }
public ControlPanelItem(string newLocalizedString, string newInfoTip, string newApplicationName, ProcessStartInfo newExecutablePath, Icon newLargeIcon)
{
LocalizedString = newLocalizedString;
InfoTip = newInfoTip;
ApplicationName = newApplicationName;
ExecutablePath = newExecutablePath;
Icon = (Icon)newLargeIcon.Clone();
}
}
}