mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 19:49:15 +08:00
29 lines
675 B
C#
29 lines
675 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Wox.Helper;
|
|
using Wox.Plugin;
|
|
using Wox.PluginLoader;
|
|
|
|
namespace Wox.Commands
|
|
{
|
|
internal static class CommandFactory
|
|
{
|
|
private static PluginCommand pluginCmd = new PluginCommand();
|
|
private static SystemCommand systemCmd = new SystemCommand();
|
|
|
|
public static void DispatchCommand(Query query)
|
|
{
|
|
if (Plugins.HitThirdpartyKeyword(query))
|
|
{
|
|
pluginCmd.Dispatch(query);
|
|
}
|
|
else
|
|
{
|
|
systemCmd.Dispatch(query);
|
|
}
|
|
}
|
|
}
|
|
}
|