void ReleaseDesignerOutlets() { if (CategoryImage != null) { CategoryImage.Dispose(); CategoryImage = null; } if (CategoryName != null) { CategoryName.Dispose(); CategoryName = null; } if (frameView != null) { frameView.Dispose(); frameView = null; } }