Exemple #1
0
        void ReleaseDesignerOutlets()
        {
            if (BrandLabel != null)
            {
                BrandLabel.Dispose();
                BrandLabel = null;
            }

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

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

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

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

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

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

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

            if (TypeTextField != null)
            {
                TypeTextField.Dispose();
                TypeTextField = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (BrandLabel != null)
            {
                BrandLabel.Dispose();
                BrandLabel = null;
            }

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

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

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

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

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

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

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

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