示例#1
0
        private void DocumentNameChangeOnSave(string oldName, string newName)
        {
            DocumentNameChangedEventArgs args = new DocumentNameChangedEventArgs {
                OldName = oldName, NewName = newName
            };

            OnDocumentNameChanged(args);
        }
示例#2
0
        protected virtual void OnDocumentNameChanged(DocumentNameChangedEventArgs e)
        {
            EventHandler <DocumentNameChangedEventArgs> handler = DocumentNameChanged;

            handler?.Invoke(this, e);
        }