Пример #1
0
 void ReleaseDesignerOutlets()
 {
     if (DepartureDateLabel != null)
     {
         DepartureDateLabel.Dispose();
         DepartureDateLabel = null;
     }
     if (DepartureTimeLabel != null)
     {
         DepartureTimeLabel.Dispose();
         DepartureTimeLabel = null;
     }
     if (FromCityLabel != null)
     {
         FromCityLabel.Dispose();
         FromCityLabel = null;
     }
     if (NumberOfTicketsLabel != null)
     {
         NumberOfTicketsLabel.Dispose();
         NumberOfTicketsLabel = null;
     }
     if (ToCityLabel != null)
     {
         ToCityLabel.Dispose();
         ToCityLabel = null;
     }
 }
Пример #2
0
 void ReleaseDesignerOutlets()
 {
     if (AddToSavedJourneysButton != null)
     {
         AddToSavedJourneysButton.Dispose();
         AddToSavedJourneysButton = null;
     }
     if (ArrivalTimeLabel != null)
     {
         ArrivalTimeLabel.Dispose();
         ArrivalTimeLabel = null;
     }
     if (CloseButton != null)
     {
         CloseButton.Dispose();
         CloseButton = null;
     }
     if (DepartureDateLabel != null)
     {
         DepartureDateLabel.Dispose();
         DepartureDateLabel = null;
     }
     if (DepartureTimeLabel != null)
     {
         DepartureTimeLabel.Dispose();
         DepartureTimeLabel = null;
     }
     if (FromCityLabel != null)
     {
         FromCityLabel.Dispose();
         FromCityLabel = null;
     }
     if (JourneyDetailsViewTitle != null)
     {
         JourneyDetailsViewTitle.Dispose();
         JourneyDetailsViewTitle = null;
     }
     if (NumberOfTicketsTextField != null)
     {
         NumberOfTicketsTextField.Dispose();
         NumberOfTicketsTextField = null;
     }
     if (PriceLabel != null)
     {
         PriceLabel.Dispose();
         PriceLabel = null;
     }
     if (ToCityLabel != null)
     {
         ToCityLabel.Dispose();
         ToCityLabel = null;
     }
 }