コード例 #1
0
        void ReleaseDesignerOutlets()
        {
            if (QuantityLabel != null)
            {
                QuantityLabel.Dispose();
                QuantityLabel = null;
            }

            if (Stepper != null)
            {
                Stepper.Dispose();
                Stepper = null;
            }
        }
コード例 #2
0
 void ReleaseDesignerOutlets()
 {
     if (DiscountLabel != null)
     {
         DiscountLabel.Dispose();
         DiscountLabel = null;
     }
     if (IconImageView != null)
     {
         IconImageView.Dispose();
         IconImageView = null;
     }
     if (PriceLabel != null)
     {
         PriceLabel.Dispose();
         PriceLabel = null;
     }
     if (ProductIdLabel != null)
     {
         ProductIdLabel.Dispose();
         ProductIdLabel = null;
     }
     if (QuantityLabel != null)
     {
         QuantityLabel.Dispose();
         QuantityLabel = null;
     }
     if (TitleLabel != null)
     {
         TitleLabel.Dispose();
         TitleLabel = null;
     }
     if (TotalPriceLabel != null)
     {
         TotalPriceLabel.Dispose();
         TotalPriceLabel = null;
     }
 }
コード例 #3
0
        void ReleaseDesignerOutlets()
        {
            if (CategoryLabel != null)
            {
                CategoryLabel.Dispose();
                CategoryLabel = null;
            }

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

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

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

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

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

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

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

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

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

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