RIAServiceApplication.Web.RegistrationData.UserNameEntered C# (CSharp) Method

UserNameEntered() private method

Perform logic after the UserName value has been entered.
Allow the form to indicate when the value has been completely entered. Using the OnUserNameChanged method can lead to a premature call before the user has finished entering the value in the form.
private UserNameEntered ( string userName ) : void
userName string The user name value that was entered.
return void
        internal void UserNameEntered(string userName)
        {
            // Auto-Fill FriendlyName to match UserName for new entities when there is not a friendly name specified
            if (string.IsNullOrWhiteSpace(this.FriendlyName))
            {
                this.FriendlyName = userName;
            }
        }