mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-15 12:09:18 +08:00
39edf1a8ed
1. part of #389 2. file rename 3. fixup
24 lines
550 B
C#
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);
|
|
}
|
|
}
|
|
}
|
|
}
|