public List <Result> LoadContextMenus(Result selectedResult) { AppWindow app = (AppWindow)selectedResult.ContextData; return(new List <Result> { new Result { Title = "Close " + app.Title, IcoPath = app.ExecutablePath, Action = e => { Context.API.ChangeQuery(Context.CurrentPluginMetadata.ActionKeyword + " ", true); app.PostClose(); return true; } } }); }