void ReleaseDesignerOutlets() { if (TheThing != null) { TheThing.Dispose(); TheThing = null; } if (ShowSwitch != null) { ShowSwitch.Dispose(); ShowSwitch = null; } }