/// <summary> /// Release the html container resources. /// </summary> public override void Dispose() { if (m_HtmlContainer != null) { m_HtmlContainer.Refresh -= OnRefresh; m_HtmlContainer.RenderError -= OnRenderError; m_HtmlContainer.StylesheetLoad -= OnStylesheetLoad; m_HtmlContainer.ImageLoad -= OnImageLoad; m_HtmlContainer.Dispose(); m_HtmlContainer = null; } base.Dispose(); }
/// <summary> /// Release the html container resources. /// </summary> protected override void Dispose(bool disposing) { if (_htmlContainer != null) { _htmlContainer.LinkClicked -= OnLinkClicked; _htmlContainer.BoxClicked -= OnBoxClicked; _htmlContainer.RenderError -= OnRenderError; _htmlContainer.Refresh -= OnRefresh; _htmlContainer.StylesheetLoad -= OnStylesheetLoad; _htmlContainer.ImageLoad -= OnImageLoad; _htmlContainer.ScrollChange -= OnScrollChange; _htmlContainer.Dispose(); _htmlContainer = null; } base.Dispose(disposing); }