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

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

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

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

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

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

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

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

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

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

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

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

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