public void Dispose() { if (_timer != null) { _timer.Dispose(); _timer = null; } if (GraphicsDevice != null) { GraphicsDevice.Dispose(); GraphicsDevice = null; } Current = null; }