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; } }