void ReleaseDesignerOutlets() { if (ImageContainer != null) { ImageContainer.Dispose(); ImageContainer = null; } if (MyLabel != null) { MyLabel.Dispose(); MyLabel = null; } }