mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-14 11:39:16 +08:00
25 lines
463 B
C#
25 lines
463 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Wox.CommandArgs
|
|
{
|
|
public class ToggleCommandArg:ICommandArg
|
|
{
|
|
public string Command
|
|
{
|
|
get { return "toggle"; }
|
|
}
|
|
|
|
public void Execute(IList<string> args)
|
|
{
|
|
if (App.Window.IsVisible)
|
|
{
|
|
App.API.HideApp();
|
|
}
|
|
else
|
|
{
|
|
App.API.ShowApp();
|
|
}
|
|
}
|
|
}
|
|
}
|