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