Flow.Launcher/Wox.Plugin/AllowedLanguage.cs

27 lines
623 B
C#
Raw Normal View History

2015-10-30 23:17:34 +00:00
namespace Wox.Plugin
2013-12-20 11:38:10 +00:00
{
public static class AllowedLanguage
{
public static string Python
{
2014-07-09 10:15:23 +00:00
get { return "PYTHON"; }
2013-12-20 11:38:10 +00:00
}
public static string CSharp
{
2014-07-09 10:15:23 +00:00
get { return "CSHARP"; }
2013-12-20 11:38:10 +00:00
}
2014-07-09 10:15:23 +00:00
public static string Executable
2014-07-05 15:10:34 +00:00
{
2014-07-09 10:15:23 +00:00
get { return "EXECUTABLE"; }
2014-07-05 15:10:34 +00:00
}
2013-12-20 11:38:10 +00:00
public static bool IsAllowed(string language)
{
2014-07-05 15:10:34 +00:00
return language.ToUpper() == Python.ToUpper()
|| language.ToUpper() == CSharp.ToUpper()
2014-07-09 10:15:23 +00:00
|| language.ToUpper() == Executable.ToUpper();
2013-12-20 11:38:10 +00:00
}
}
}