public static void ReleaseResources() { //if (StudGridTexture != null) //{ // StudGridTexture.Dispose(); // StudGridTexture = null; //} if (StudConnectionGrid != null) { StudConnectionGrid.Dispose(); StudConnectionGrid = null; } if (Checkerboard != null) { Checkerboard.Dispose(); Checkerboard = null; } if (SelectionIcons != null) { SelectionIcons.Dispose(); SelectionIcons = null; } }