Esempio n. 1
0
        void ReleaseDesignerOutlets()
        {
            if (AircraftDetailsLabel != null)
            {
                AircraftDetailsLabel.Dispose();
                AircraftDetailsLabel = null;
            }

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

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

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

            if (NotesLabel != null)
            {
                NotesLabel.Dispose();
                NotesLabel = null;
            }
        }
Esempio n. 2
0
        void ReleaseDesignerOutlets()
        {
            if (AdDescription != null)
            {
                AdDescription.Dispose();
                AdDescription = null;
            }

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

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

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

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

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