2020-04-21 09:12:17 +00:00
|
|
|
|
namespace Flow.Launcher.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
|
|
|
|
}
|
|
|
|
|
|
|
2020-04-30 07:22:28 +00:00
|
|
|
|
public static string FSharp
|
|
|
|
|
|
{
|
|
|
|
|
|
get { return "FSHARP"; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
2020-04-30 07:22:28 +00:00
|
|
|
|
public static bool IsDotNet(string language)
|
|
|
|
|
|
{
|
|
|
|
|
|
return language.ToUpper() == CSharp
|
|
|
|
|
|
|| language.ToUpper() == FSharp;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2013-12-20 11:38:10 +00:00
|
|
|
|
public static bool IsAllowed(string language)
|
|
|
|
|
|
{
|
2020-04-30 07:22:28 +00:00
|
|
|
|
return IsDotNet(language)
|
|
|
|
|
|
|| language.ToUpper() == Python.ToUpper()
|
2014-07-09 10:15:23 +00:00
|
|
|
|
|| language.ToUpper() == Executable.ToUpper();
|
2013-12-20 11:38:10 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2014-02-06 14:22:02 +00:00
|
|
|
|
}
|