Remove instance logic for BinaryStorage and JsonStorage, part 2

1. part of #389
2. file rename
3. fixup
This commit is contained in:
bao-qian
2016-04-21 20:56:53 +01:00
parent 8d10c9aa41
commit 39edf1a8ed
19 changed files with 11 additions and 17 deletions

View File

@@ -0,0 +1,23 @@
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);
}
}
}
}