Method | Description | |
---|---|---|
LoginForm ( ) : System |
Creates a new LoginForm instance.
|
|
SetInitialFocus ( ) : void |
Sets focus to the user name text box.
|
|
SetParentWindow ( |
Sets the parent window for the current LoginForm.
|
Method | Description | |
---|---|---|
CancelButton_Click ( object sender, |
If a login operation is in progress and is cancellable, cancel it. Otherwise, close the window.
|
|
LoginButton_Click ( object sender, |
Submits the LoginOperation to the server
|
|
LoginForm_AutoGeneratingField ( object sender, System.Windows.Controls.DataFormAutoGeneratingFieldEventArgs e ) : void |
Handles DataForm.AutoGeneratingField to provide the PasswordAccessor.
|
|
LoginForm_KeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void |
Maps Esc to the cancel button and Enter to the OK button.
|
|
LoginOperation_Completed ( LoginOperation loginOperation ) : void |
Completion handler for a LoginOperation. If operation succeeds, it closes the window. If it has an error, it displays an ErrorWindow and marks the error as handled. If it was not canceled, but login failed, it must have been because credentials were incorrect so a validation error is added to notify the user.
|
|
RegisterNow_Click ( object sender, |
Switches to the registration form.
|
public SetParentWindow ( |
||
window | The window to use as the parent. | |
return | void |