2014-01-25 18:00:13 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
2014-01-29 18:33:24 +08:00
|
|
|
|
namespace Wox.Plugin.System
|
2014-01-25 18:00:13 +08:00
|
|
|
|
{
|
|
|
|
|
public class Setting : BaseSystemPlugin
|
|
|
|
|
{
|
|
|
|
|
private PluginInitContext context;
|
|
|
|
|
protected override List<Result> QueryInternal(Query query)
|
|
|
|
|
{
|
|
|
|
|
List<Result> results = new List<Result>();
|
|
|
|
|
if ("setting".Contains(query.RawQuery.ToLower()))
|
|
|
|
|
{
|
|
|
|
|
results.Add(new Result()
|
|
|
|
|
{
|
2014-03-01 15:42:33 +08:00
|
|
|
|
Title = "Wox Setting",
|
2014-03-02 11:29:14 +08:00
|
|
|
|
Score = 40,
|
2014-01-25 18:00:13 +08:00
|
|
|
|
IcoPath = "Images/app.png",
|
2014-02-28 23:21:01 +08:00
|
|
|
|
Action = (contenxt) =>
|
|
|
|
|
{
|
|
|
|
|
context.OpenSettingDialog();
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2014-01-25 18:00:13 +08:00
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return results;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void InitInternal(PluginInitContext context)
|
|
|
|
|
{
|
|
|
|
|
this.context = context;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|