Beispiel #1
0
 void ReleaseDesignerOutlets()
 {
     if (CountLabel != null)
     {
         CountLabel.Dispose();
         CountLabel = null;
     }
     if (ProductIdLabel != null)
     {
         ProductIdLabel.Dispose();
         ProductIdLabel = null;
     }
     if (TitleLabel != null)
     {
         TitleLabel.Dispose();
         TitleLabel = null;
     }
 }
Beispiel #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;
     }
 }