using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace WinAlfred.Plugin.System { public class Setting : BaseSystemPlugin { private PluginInitContext context; protected override List QueryInternal(Query query) { List results = new List(); if ("setting".Contains(query.RawQuery.ToLower())) { results.Add(new Result() { Title = "WinAlfred Setting Dialog", Score = 100, IcoPath = "Images/app.png", Action = () => context.OpenSettingDialog() }); } return results; } protected override void InitInternal(PluginInitContext context) { this.context = context; } } }