Пример #1
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;
     }
 }
Пример #2
0
 void ReleaseDesignerOutlets()
 {
     if (CustomerLabel != null)
     {
         CustomerLabel.Dispose();
         CustomerLabel = null;
     }
     if (DiscountLabel != null)
     {
         DiscountLabel.Dispose();
         DiscountLabel = null;
     }
     if (DiscountTitleLabel != null)
     {
         DiscountTitleLabel.Dispose();
         DiscountTitleLabel = null;
     }
     if (PauseButton != null)
     {
         PauseButton.Dispose();
         PauseButton = null;
     }
     if (ScanButton != null)
     {
         ScanButton.Dispose();
         ScanButton = null;
     }
     if (SearchBarContainerView != null)
     {
         SearchBarContainerView.Dispose();
         SearchBarContainerView = null;
     }
     if (TableView != null)
     {
         TableView.Dispose();
         TableView = null;
     }
     if (TaxLabel != null)
     {
         TaxLabel.Dispose();
         TaxLabel = null;
     }
     if (TaxTitleLabel != null)
     {
         TaxTitleLabel.Dispose();
         TaxTitleLabel = null;
     }
     if (TotalLabel != null)
     {
         TotalLabel.Dispose();
         TotalLabel = null;
     }
     if (TotalTitleLabel != null)
     {
         TotalTitleLabel.Dispose();
         TotalTitleLabel = null;
     }
     if (TrashButton != null)
     {
         TrashButton.Dispose();
         TrashButton = null;
     }
 }