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

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

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

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

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

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

            if (VehicleDetails != null)
            {
                VehicleDetails.Dispose();
                VehicleDetails = null;
            }
        }
Exemplo n.º 2
0
        void ReleaseDesignerOutlets()
        {
            if (address != null)
            {
                address.Dispose();
                address = null;
            }

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

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

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

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

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

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

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

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

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

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

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