using System; using System.Collections.Generic; using System.Linq; using System.Text; using Newtonsoft.Json; using Wox.Infrastructure.Storage; using System.IO; using System.Reflection; namespace Wox.Plugin.Everything { public class ContextMenuStorage : JsonStrorage { [JsonProperty] public List ContextMenus = new List(); [JsonProperty] public int MaxSearchCount { get; set; } public IPublicAPI API { get; set; } protected override string ConfigName { get { return "EverythingContextMenu"; } } protected override string ConfigFolder { get { return Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); } } protected override void OnAfterLoad(ContextMenuStorage obj) { } protected override ContextMenuStorage LoadDefault() { MaxSearchCount = 100; return this; } } public class ContextMenu { [JsonProperty] public string Name { get; set; } [JsonProperty] public string Command { get; set; } [JsonProperty] public string Argument { get; set; } [JsonProperty] public string ImagePath { get; set; } } }