private void DocumentNameChangeOnSave(string oldName, string newName) { DocumentNameChangedEventArgs args = new DocumentNameChangedEventArgs { OldName = oldName, NewName = newName }; OnDocumentNameChanged(args); }
protected virtual void OnDocumentNameChanged(DocumentNameChangedEventArgs e) { EventHandler <DocumentNameChangedEventArgs> handler = DocumentNameChanged; handler?.Invoke(this, e); }