Пример #1
0
        void ReleaseDesignerOutlets()
        {
            if (DescriptionBottomConstraint != null)
            {
                DescriptionBottomConstraint.Dispose();
                DescriptionBottomConstraint = null;
            }

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

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

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

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

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

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

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

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

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

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

            if (MapYConstraint != null)
            {
                MapYConstraint.Dispose();
                MapYConstraint = null;
            }
        }
Пример #2
0
 private void DisposeMapCell()
 {
     MapCell.NavigateAddressesCommand = null;
     MapCell.Dispose();
 }