mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 11:39:16 +08:00
26 lines
515 B
C#
26 lines
515 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
|
|||
|
namespace Wox.CommandArgs
|
|||
|
{
|
|||
|
public class QueryCommandArg : ICommandArg
|
|||
|
{
|
|||
|
public string Command
|
|||
|
{
|
|||
|
get { return "query"; }
|
|||
|
}
|
|||
|
|
|||
|
public void Execute(IList<string> args)
|
|||
|
{
|
|||
|
if (args.Count > 0)
|
|||
|
{
|
|||
|
string query = args[0];
|
|||
|
App.Window.ChangeQuery(query);
|
|||
|
}
|
|||
|
App.Window.ShowApp();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|