C# Class TrainTracker.Web.RegistrationData

Extensions to provide client side custom validation and data binding to RegistrationData.
显示文件 Open project: vega670/TrainTracker

Private Properties

Property Type Description
CheckPasswordConfirmation void
CurrentOperationChanged void
UserNameEntered void

Public Methods

Method Description
ToLoginParameters ( ) : LoginParameters

Creates a new LoginParameters initialized with this entity's data (IsPersistent will default to false)

Private Methods

Method Description
CheckPasswordConfirmation ( ) : void

Checks to ensure the password and confirmation match. If they don't match, then a validation error is added.

CurrentOperationChanged ( ) : void

Helper method for when the current operation changes. Used to raise appropriate property change notifications.

UserNameEntered ( string userName ) : void

Perform logic after the UserName value has been entered

Allow the form to indicate when the value has been completely entered, because using the OnUserNameChanged method can lead to a premature call before the user has finished entering the value in the form.

Method Details

ToLoginParameters() public method

Creates a new LoginParameters initialized with this entity's data (IsPersistent will default to false)
public ToLoginParameters ( ) : LoginParameters
return LoginParameters