示例#1
0
        void ReleaseDesignerOutlets()
        {
            if (CompareButton != null)
            {
                CompareButton.Dispose();
                CompareButton = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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