mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-04 03:49:07 +08:00
34 lines
787 B
C#
34 lines
787 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using WinAlfred.Helper;
|
|
using WinAlfred.Plugin;
|
|
|
|
namespace WinAlfred.Commands
|
|
{
|
|
public class Command
|
|
{
|
|
private PluginCommand pluginCmd;
|
|
private SystemCommand systemCmd;
|
|
|
|
public Command(MainWindow window)
|
|
{
|
|
pluginCmd = new PluginCommand(window);
|
|
systemCmd = new SystemCommand(window);
|
|
}
|
|
|
|
public void DispatchCommand(Query query)
|
|
{
|
|
systemCmd.Dispatch(query);
|
|
pluginCmd.Dispatch(query);
|
|
}
|
|
|
|
public void DispatchCommand(Query query,bool updateView)
|
|
{
|
|
systemCmd.Dispatch(query,updateView);
|
|
pluginCmd.Dispatch(query,updateView);
|
|
}
|
|
}
|
|
}
|