protected override void Dispose(bool disposing)
{
Debug.WriteLineIf(!disposing, "****** Missing Dispose() call for " + GetType().Name + ". ****** ");
// Must not be run more than once.
if (IsDisposed)
return;
if (disposing)
{
if (components != null)
{
components.Dispose();
}
if (m_scrViewHelper != null)
m_scrViewHelper.Dispose();
if (m_annotationViewHelper != null)
m_annotationViewHelper.Dispose();
var disposable = m_resolver as IDisposable;
if (disposable != null)
disposable.Dispose();
}
m_resolver = null;
m_scrViewHelper = null;
m_annotationViewHelper = null;
base.Dispose(disposing);
}
#endregion