/// <summary> /// Disposes the control. /// </summary> protected override void Dispose(bool disposing) { if (_graphicsDeviceService != null) { _graphicsDeviceService.Release(disposing); _graphicsDeviceService = null; } base.Dispose(disposing); }