void ReleaseDesignerOutlets() { if (DescriptionLabel != null) { DescriptionLabel.Dispose(); DescriptionLabel = null; } if (HeightLabel != null) { HeightLabel.Dispose(); HeightLabel = null; } if (NameLabel != null) { NameLabel.Dispose(); NameLabel = null; } if (PokemonImage != null) { PokemonImage.Dispose(); PokemonImage = null; } if (WeightLabel != null) { WeightLabel.Dispose(); WeightLabel = null; } }
void ReleaseDesignerOutlets() { if (WidthLabel != null) { WidthLabel.Dispose(); WidthLabel = null; } if (HeightLabel != null) { HeightLabel.Dispose(); HeightLabel = null; } if (DownloadButton != null) { DownloadButton.Dispose(); DownloadButton = null; } if (HeightTextField != null) { HeightTextField.Dispose(); HeightTextField = null; } if (ImageView != null) { ImageView.Dispose(); ImageView = null; } if (MediaPathTextField != null) { MediaPathTextField.Dispose(); MediaPathTextField = null; } if (WidthTextField != null) { WidthTextField.Dispose(); WidthTextField = null; } }