You could edit LayerBase.cs to add a property like
public bool isVisible = true;
Then edit the Draw function ("public void Draw()") so that it doesn't do anything if the layer is set to be be invisible:
if (!isVisible) return;
Whenever you want to show or hide the layer, just set its isVisible property.