mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
37 lines
787 B
C#
37 lines
787 B
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
|
|||
|
|
namespace WinAlfred.Plugin.System
|
|||
|
|
{
|
|||
|
|
public class Main : IPlugin
|
|||
|
|
{
|
|||
|
|
List<Result> results = new List<Result>();
|
|||
|
|
|
|||
|
|
public List<Result> Query(Query query)
|
|||
|
|
{
|
|||
|
|
results.Clear();
|
|||
|
|
|
|||
|
|
if (query.ActionParameters.Count == 0)
|
|||
|
|
{
|
|||
|
|
results.Add(new Result
|
|||
|
|
{
|
|||
|
|
Title = "Shutdown",
|
|||
|
|
SubTitle = "shutdown your computer",
|
|||
|
|
Score = 100,
|
|||
|
|
Action = () =>
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
return results;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public void Init()
|
|||
|
|
{
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|