Files
PowerToys/Plugins/Wox.Plugin.CMD/CMDStorage.cs
2016-04-21 20:42:07 +01:00

27 lines
636 B
C#

using System.Collections.Generic;
using System.ComponentModel;
using Newtonsoft.Json;
using Wox.Infrastructure.Storage;
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);
}
}
}
}