PowerToys/Plugins/Wox.Plugin.CMD/CMDHistory.cs

24 lines
550 B
C#
Raw Normal View History

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