C# 클래스 ERP.LoginUI.RegistrationForm

상속: System.Windows.Controls.StackPanel
파일 보기 프로젝트 열기: arthurgfonseca/ERP-Grupo5 1 사용 예제들

공개 메소드들

메소드 설명
RegistrationForm ( ) : System

Creates a new RegistrationForm instance.

SetParentWindow ( LoginRegistrationWindow window ) : void

Sets the parent window for the current RegistrationForm.

비공개 메소드들

메소드 설명
BackToLogin_Click ( object sender, RoutedEventArgs e ) : void

Switches to the login window.

CancelButton_Click ( object sender, EventArgs e ) : void

If a registration or login operation is in progress and is cancellable, cancel it. Otherwise, close the window.

CreateComboBoxWithSecurityQuestions ( ) : ComboBox

Returns a ComboBox object whose ComboBox.ItemsSource property is initialized with the resource strings defined in SecurityQuestions.

InitializeComponent ( ) : void
LoginOperation_Completed ( LoginOperation loginOperation ) : void

Completion handler for the login operation that occurs after a successful registration and login attempt. This will close the window. On the unexpected event that this operation failed (the user was just added so why wouldn't it be authenticated successfully) an ErrorWindow is created and will display the error message.

RegisterButton_Click ( object sender, RoutedEventArgs e ) : void

Submit the new registration.

RegisterForm_AutoGeneratingField ( object dataForm, System.Windows.Controls.DataFormAutoGeneratingFieldEventArgs e ) : void

Wire up the Password and PasswordConfirmation Accessors as the fields get generated.

RegistrationOperation_Completed ( InvokeOperation operation ) : void

Completion handler for the registration operation. If there was an error, an ErrorWindow is displayed to the user. Otherwise, this triggers a login operation that will automatically log in the just registered user.

UserNameLostFocus ( object sender, RoutedEventArgs e ) : void

The callback for when the UserName TextBox loses focus. Call into the registration data to allow logic to be processed, possibly setting the FriendlyName field.

메소드 상세

RegistrationForm() 공개 메소드

Creates a new RegistrationForm instance.
public RegistrationForm ( ) : System
리턴 System

SetParentWindow() 공개 메소드

Sets the parent window for the current RegistrationForm.
public SetParentWindow ( LoginRegistrationWindow window ) : void
window LoginRegistrationWindow The window to use as the parent.
리턴 void