void ReleaseDesignerOutlets() { if (AddToListButton != null) { AddToListButton.Dispose(); AddToListButton = null; } if (EmailField != null) { EmailField.Dispose(); EmailField = null; } if (NameField != null) { NameField.Dispose(); NameField = null; } if (RemoveButton != null) { RemoveButton.Dispose(); RemoveButton = null; } }