2013-12-20 19:38:10 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
2014-01-29 18:33:24 +08:00
|
|
|
|
namespace Wox.Plugin
|
2013-12-20 19:38:10 +08:00
|
|
|
|
{
|
|
|
|
|
public static class AllowedLanguage
|
|
|
|
|
{
|
|
|
|
|
public static string Python
|
|
|
|
|
{
|
2014-07-09 18:15:23 +08:00
|
|
|
|
get { return "PYTHON"; }
|
2013-12-20 19:38:10 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static string CSharp
|
|
|
|
|
{
|
2014-07-09 18:15:23 +08:00
|
|
|
|
get { return "CSHARP"; }
|
2013-12-20 19:38:10 +08:00
|
|
|
|
}
|
|
|
|
|
|
2014-07-09 18:15:23 +08:00
|
|
|
|
public static string Executable
|
2014-07-05 23:10:34 +08:00
|
|
|
|
{
|
2014-07-09 18:15:23 +08:00
|
|
|
|
get { return "EXECUTABLE"; }
|
2014-07-05 23:10:34 +08:00
|
|
|
|
}
|
|
|
|
|
|
2013-12-20 19:38:10 +08:00
|
|
|
|
public static bool IsAllowed(string language)
|
|
|
|
|
{
|
2014-07-05 23:10:34 +08:00
|
|
|
|
return language.ToUpper() == Python.ToUpper()
|
|
|
|
|
|| language.ToUpper() == CSharp.ToUpper()
|
2014-07-09 18:15:23 +08:00
|
|
|
|
|| language.ToUpper() == Executable.ToUpper();
|
2013-12-20 19:38:10 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2014-02-06 22:22:02 +08:00
|
|
|
|
}
|