//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; } }
public void Dispose() { _mouse.Dispose(); _mouse = null; }