mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
27 lines
636 B
C#
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);
|
|
}
|
|
}
|
|
}
|
|
}
|