Esempio n. 1
0
        private void OnDispose()
        {
            if (_drawableCache != null)
            {
                foreach (var p in _drawableCache)
                {
                    p.Value?.Dispose();
                }

                _drawableCache.Clear();
                _drawableCache = null;
            }
            if (_windDirectionBitmapCache != null)
            {
                foreach (var p in _windDirectionBitmapCache)
                {
                    p.Value?.Recycle();
                }

                _windDirectionBitmapCache.Clear();
                _windDirectionBitmapCache = null;
            }

            _appCompatDrawableUtil = null;
            _drawableUtil          = null;
            _windTools             = null;
        }
Esempio n. 2
0
 private WindTools GetWindTools()
 {
     return(_windTools ?? (_windTools = new WindTools()));
 }