示例#1
0
        void ReleaseDesignerOutlets()
        {
            if (AddToCartBtn != null)
            {
                AddToCartBtn.Dispose();
                AddToCartBtn = null;
            }

            if (amountTxt != null)
            {
                amountTxt.Dispose();
                amountTxt = null;
            }

            if (CancelBtn != null)
            {
                CancelBtn.Dispose();
                CancelBtn = null;
            }

            if (DescLabel != null)
            {
                DescLabel.Dispose();
                DescLabel = null;
            }

            if (DescriptionTB != null)
            {
                DescriptionTB.Dispose();
                DescriptionTB = null;
            }

            if (HotDogDetailView != null)
            {
                HotDogDetailView.Dispose();
                HotDogDetailView = null;
            }

            if (HotDogImageView != null)
            {
                HotDogImageView.Dispose();
                HotDogImageView = null;
            }

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

            if (PriceLabel != null)
            {
                PriceLabel.Dispose();
                PriceLabel = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (AddToCartButton != null)
            {
                AddToCartButton.Dispose();
                AddToCartButton = null;
            }

            if (CancelButton != null)
            {
                CancelButton.Dispose();
                CancelButton = null;
            }

            if (HotDogDetailView != null)
            {
                HotDogDetailView.Dispose();
                HotDogDetailView = null;
            }

            if (HotDogImageView != null)
            {
                HotDogImageView.Dispose();
                HotDogImageView = null;
            }

            if (LongDescriptionText != null)
            {
                LongDescriptionText.Dispose();
                LongDescriptionText = null;
            }

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

            if (PriceLabel != null)
            {
                PriceLabel.Dispose();
                PriceLabel = null;
            }

            if (QuantityInput != null)
            {
                QuantityInput.Dispose();
                QuantityInput = null;
            }

            if (ShortDescriptionLabel != null)
            {
                ShortDescriptionLabel.Dispose();
                ShortDescriptionLabel = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (AddToChartButton != null)
            {
                AddToChartButton.Dispose();
                AddToChartButton = null;
            }

            if (AmmountText != null)
            {
                AmmountText.Dispose();
                AmmountText = null;
            }

            if (CancelButton != null)
            {
                CancelButton.Dispose();
                CancelButton = null;
            }

            if (HotDogImageView != null)
            {
                HotDogImageView.Dispose();
                HotDogImageView = null;
            }

            if (HotDogName != null)
            {
                HotDogName.Dispose();
                HotDogName = null;
            }

            if (LongDescriptionText != null)
            {
                LongDescriptionText.Dispose();
                LongDescriptionText = null;
            }

            if (PriceLabel != null)
            {
                PriceLabel.Dispose();
                PriceLabel = null;
            }

            if (ShortDescriptionLabel != null)
            {
                ShortDescriptionLabel.Dispose();
                ShortDescriptionLabel = null;
            }
        }