Example #1
0
        public override void ClearConfiguration(bool expectRecreationOfSameBackgroundLayer = false)
        {
            wellKnownTileSource = null;

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

            if (!expectRecreationOfSameBackgroundLayer)
            {
                PreviousBackgroundLayerCreationFailed = false;
            }
        }
Example #2
0
        public override void ClearConfiguration(bool expectRecreationOfSameBackgroundLayer = false)
        {
            sourceCapabilitiesUrl = null;
            selectedCapabilityId  = null;
            preferredFormat       = null;

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

            if (!expectRecreationOfSameBackgroundLayer)
            {
                PreviousBackgroundLayerCreationFailed = false;
            }
        }
Example #3
0
        //private void Mouse_CursorChanged(object sender, CursorChangedEventArgs e)
        //{
        //    Renderer.Render();
        //}

        #endregion

        #region IDisposable Support

        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    Renderer.Dispose();
                    __mouse.Dispose();
                    __bgLayer.Dispose();
                    __trans.Dispose();
                    __mp.Dispose();
                }
                Renderer      = null;
                __mouse       = null;
                __bgLayer     = null;
                __trans       = null;
                disposedValue = true;
            }
        }