|
namespace BusinessApp.Web
{
using System;
using System.ComponentModel;
/// <summary>
/// Extensions to the <see cref="User"/> class.
/// </summary>
public partial class User
{
#region Make DisplayName Bindable
/// <summary>
/// Override of the <c>OnPropertyChanged</c> method that generates property change notifications when <see cref="User.DisplayName"/> changes.
/// </summary>
/// <param name="e">The property change event args.</param>
protected override void OnPropertyChanged(PropertyChangedEventArgs e)
{
base.OnPropertyChanged(e);
if (e.PropertyName == "Name" || e.PropertyName == "FriendlyName")
{
this.RaisePropertyChanged("DisplayName");
}
}
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.