PowerToys/Wox/CommandArgs/ToggleCommandArg.cs
2016-02-18 19:43:35 +08:00

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();
}
}
}
}