virtual public void DoDocumentFileNameChange() { var args = new DocumentFileNameChangedEventArgs { FileName = documentFileName, Title = Title }; OnDocumentFileNameChanged?.Invoke(this, args); }
virtual public void DoDocumentFileNameChange() { if (OnDocumentFileNameChanged != null) { DocumentFileNameChangedEventArgs args = new DocumentFileNameChangedEventArgs(); args.FileName = documentFileName; args.Title = Title; OnDocumentFileNameChanged(this, args); } }