PowerToys/Plugins/Wox.Plugin.CMD/CMDHistory.cs
2016-04-21 20:56:53 +01:00

24 lines
550 B
C#

using System.Collections.Generic;
namespace Wox.Plugin.CMD
{
public class CMDHistory
{
public bool ReplaceWinR { get; set; } = true;
public bool LeaveCmdOpen { get; set; }
public Dictionary<string, int> Count = new Dictionary<string, int>();
public void AddCmdHistory(string cmdName)
{
if (Count.ContainsKey(cmdName))
{
Count[cmdName] += 1;
}
else
{
Count.Add(cmdName, 1);
}
}
}
}