protected override void Dispose(bool disposing)
        {
            if (!_disposed && disposing)
            {
                if (_borderImageCacheManager != null)
                {
                    _borderImageCacheManager.Dispose();
                    _borderImageCacheManager = null;
                }

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

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

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

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

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

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

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

                _disposed = true;
            }

            base.Dispose(disposing);
        }
        protected override void Dispose(bool disposing)
        {
            if (!_disposed && disposing)
            {
                if (_borderImageCacheManager != null)
                {
                    _borderImageCacheManager.Dispose();
                    _borderImageCacheManager = null;
                }

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

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

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

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

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

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

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

                _disposed = true;
            }

            base.Dispose(disposing);
        }