mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
Add hello world csharp example
This commit is contained in:
28
Plugins/HelloWorldCSharp/Main.cs
Normal file
28
Plugins/HelloWorldCSharp/Main.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Wox.Plugin;
|
||||
|
||||
namespace HelloWorldCSharp
|
||||
{
|
||||
class Main : IPlugin
|
||||
{
|
||||
public List<Result> Query(Query query)
|
||||
{
|
||||
var result = new Result
|
||||
{
|
||||
Title = "Hello Word from CSharp",
|
||||
SubTitle = $"Query: {query.Search}",
|
||||
IcoPath = "app.png"
|
||||
};
|
||||
return new List<Result> {result};
|
||||
}
|
||||
|
||||
public void Init(PluginInitContext context)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user