예제 #1
0
        /// <inheritdoc />
        public void SetDocumentTitle(string title)
        {
            if (string.Equals(title, Title, StringComparison.CurrentCultureIgnoreCase))
            {
                return;
            }

            string oldTitle = Title;

            Title = title;
            DocumentTitleChanged?.Invoke(this, new DocumentTitleChangedEventArgs(oldTitle, title));
        }
예제 #2
0
 /// <summary>
 /// Raises the <see cref="DocumentTitleChanged"/> event.
 /// </summary>
 /// <param name="e">A <see cref="DocumentTitleChangedEventArgs"/> that contains the event data.</param>
 protected virtual void OnDocumentTitleChanged(DocumentTitleChangedEventArgs e)
 {
     DocumentTitleChanged?.Invoke(this, e);
 }