Add func to determine if we are using mono.

This commit is contained in:
Tim Young 2017-06-14 11:34:39 -05:00
parent a2c04e0bfd
commit fc52fe3236

View File

@ -358,6 +358,15 @@ namespace EduNetworkBuilder
return myresource;
}
/// <summary>
/// Determine if we are using Mono or .Net. Some things get killed using Mono.
/// </summary>
/// <returns>True if we are using Mono</returns>
public static bool IsRunningOnMono()
{
return Type.GetType("Mono.Runtime") != null;
}
public static Point GetSnapped(Point Location)
{
int x = (Location.X / NB.GridSize) * NB.GridSize;