void ReleaseDesignerOutlets()
 {
     if (Distance != null)
     {
         Distance.Dispose();
         Distance = null;
     }
     if (FreeMarker != null)
     {
         FreeMarker.Dispose();
         FreeMarker = null;
     }
     if (Price != null)
     {
         Price.Dispose();
         Price = null;
     }
     if (RatingStar1 != null)
     {
         RatingStar1.Dispose();
         RatingStar1 = null;
     }
     if (RatingStar2 != null)
     {
         RatingStar2.Dispose();
         RatingStar2 = null;
     }
     if (RatingStar3 != null)
     {
         RatingStar3.Dispose();
         RatingStar3 = null;
     }
     if (RatingStar4 != null)
     {
         RatingStar4.Dispose();
         RatingStar4 = null;
     }
     if (RatingStar5 != null)
     {
         RatingStar5.Dispose();
         RatingStar5 = null;
     }
     if (VehiclePicture != null)
     {
         VehiclePicture.Dispose();
         VehiclePicture = null;
     }
     if (VehicleTitle != null)
     {
         VehicleTitle.Dispose();
         VehicleTitle = null;
     }
 }
Exemple #2
0
 void ReleaseDesignerOutlets()
 {
     if (CallButton != null)
     {
         CallButton.Dispose();
         CallButton = null;
     }
     if (Detail != null)
     {
         Detail.Dispose();
         Detail = null;
     }
     if (DriverName != null)
     {
         DriverName.Dispose();
         DriverName = null;
     }
     if (LicensePlate != null)
     {
         LicensePlate.Dispose();
         LicensePlate = null;
     }
     if (Maker != null)
     {
         Maker.Dispose();
         Maker = null;
     }
     if (Map != null)
     {
         Map.Dispose();
         Map = null;
     }
     if (Model != null)
     {
         Model.Dispose();
         Model = null;
     }
     if (Rate != null)
     {
         Rate.Dispose();
         Rate = null;
     }
     if (RatingStar1 != null)
     {
         RatingStar1.Dispose();
         RatingStar1 = null;
     }
     if (RatingStar2 != null)
     {
         RatingStar2.Dispose();
         RatingStar2 = null;
     }
     if (RatingStar3 != null)
     {
         RatingStar3.Dispose();
         RatingStar3 = null;
     }
     if (RatingStar4 != null)
     {
         RatingStar4.Dispose();
         RatingStar4 = null;
     }
     if (RatingStar5 != null)
     {
         RatingStar5.Dispose();
         RatingStar5 = null;
     }
     if (RequestButton != null)
     {
         RequestButton.Dispose();
         RequestButton = null;
     }
     if (Seats != null)
     {
         Seats.Dispose();
         Seats = null;
     }
     if (Status != null)
     {
         Status.Dispose();
         Status = null;
     }
     if (Type != null)
     {
         Type.Dispose();
         Type = null;
     }
     if (VehiclePicture != null)
     {
         VehiclePicture.Dispose();
         VehiclePicture = null;
     }
 }