Files
PowerToys/Plugins/Wox.Plugin.CMD/CMDStorage.cs

27 lines
636 B
C#
Raw Normal View History

using System.Collections.Generic;
using System.ComponentModel;
2014-03-23 16:17:41 +08:00
using Newtonsoft.Json;
using Wox.Infrastructure.Storage;
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
}
}
}
}