Made Hide and Show methods virtual so that they can be overridden by descendants that want to add functionality to these events.