protected override void OnUnload(EventArgs e) { base.OnUnload(e); if (_renderingContext != null) { _renderingContext.Dispose(); } }
private void _Destroy(object sender, System.EventArgs e) { if (RenderingContext != null) { RenderingContext.Dispose(); RenderingContext = null; WinControl = null; } }