Add func to determine if we are using mono.
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user