void ReleaseDesignerOutlets() { if (AvailableQuantity != null) { AvailableQuantity.Dispose(); AvailableQuantity = null; } if (ItemDescription != null) { ItemDescription.Dispose(); ItemDescription = null; } if (ItemImage != null) { ItemImage.Dispose(); ItemImage = null; } if (ItemTitle != null) { ItemTitle.Dispose(); ItemTitle = null; } if (UpdateButton != null) { UpdateButton.Dispose(); UpdateButton = null; } }
void ReleaseDesignerOutlets() { if (BuyButton != null) { BuyButton.Dispose(); BuyButton = null; } if (ItemDescription != null) { ItemDescription.Dispose(); ItemDescription = null; } if (ItemImage != null) { ItemImage.Dispose(); ItemImage = null; } if (ItemPrice != null) { ItemPrice.Dispose(); ItemPrice = null; } if (ItemTitle != null) { ItemTitle.Dispose(); ItemTitle = null; } if (DownloadProgress != null) { DownloadProgress.Dispose(); DownloadProgress = null; } }