Esempio n. 1
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;
     }
 }
        void ReleaseDesignerOutlets()
        {
            if (Back != null)
            {
                Back.Dispose();
                Back = null;
            }

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

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

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

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

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

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

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

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

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