/// <summary>
 /// Disposes of the resources (other than memory) used by the <see cref="T:System.Windows.Forms.Form"/>.
 /// </summary>
 /// <param name="disposing">true to release both managed and unmanaged resources; false to release only unmanaged resources.</param>
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         _document.DocumentAboutToBeChanged -= DocumentAboutToBeChanged;
         if (_completionListView != null)
         {
             _completionListView.Dispose();
             _completionListView = null;
         }
         if (_declarationViewWindow != null)
         {
             _declarationViewWindow.Dispose();
             _declarationViewWindow = null;
         }
     }
     base.Dispose(disposing);
 }