PowerToys/Wox/CommandArgs/ToggleCommandArg.cs

25 lines
463 B
C#
Raw Normal View History

2015-10-31 07:17:34 +08:00
using System.Collections.Generic;
namespace Wox.CommandArgs
{
public class ToggleCommandArg:ICommandArg
{
public string Command
{
get { return "toggle"; }
}
public void Execute(IList<string> args)
{
2016-02-12 17:20:46 +08:00
if (App.Window.IsVisible)
{
App.API.HideApp();
}
else
{
App.API.ShowApp();
}
}
}
}