protected virtual void OnBeginOpenDocument() { BeginDocumentOpenDelegate handler = BeginOpenDocument; if (handler != null) handler(); }