void ReleaseDesignerOutlets() { if (CheckBoxImageView != null) { CheckBoxImageView.Dispose(); CheckBoxImageView = null; } if (NameLabel != null) { NameLabel.Dispose(); NameLabel = null; } }