protected virtual void OnDocumentChanged( Document document, bool isDirty ) { DocumentChangeDelegate handler = DocumentChanged; if (handler != null) handler( document, isDirty ); }