C# 클래스 Bloom.WebLibraryIntegration.LoginDialog

this class manages a the login process for Bloom, including signing up for new accounts. (This is a bit clumsy, but makes it easy to switch to login if the user enters a known address, or switch to signup if the user tries to log in with an unknown email. It also saves passing another object around.) Much of this logic unfortunately is or will be duplicated in the web site itself. We may at some point consider embedding a part of the web site itself in a Gecko window instead for login; but in the current state of my (JohnT's) knowledge, it was easier to do a plain C# version.
상속: System.Windows.Forms.Form
파일 보기 프로젝트 열기: BloomBooks/BloomDesktop 1 사용 예제들

Private Properties

프로퍼티 타입 설명
DoSignUp void
HaveGoodEmail bool
InitializeComponent void
Login void
RestoreToLogin void
ShowTermsOfUse void
SwitchToSignUp void
UpdateDisplay void
_emailBox_TextChanged void
_forgotLabel_LinkClicked void
_passwordBox_TextChanged void
_showPasswordCheckBox_CheckedChanged void
_showTermsOfUse_LinkClicked void

공개 메소드들

메소드 설명
IsValidEmail ( string email ) : bool
LogIn ( ) : bool

This may be called by clients to log us in using the saved settings, if any.

LoginDialog ( BloomParseClient client ) : System
SignUp ( IWin32Window owner ) : bool

Adapt the dialog to use it for signup and run it. Return true if successfully signed up (or possibly logged on with an existing account).

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnClosed ( EventArgs e ) : void
OnLoad ( EventArgs e ) : void
OnShown ( EventArgs e ) : void

비공개 메소드들

메소드 설명
DoSignUp ( ) : void
HaveGoodEmail ( ) : bool
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

Login ( object sender, EventArgs e ) : void
RestoreToLogin ( ) : void
ShowTermsOfUse ( bool show ) : void
SwitchToSignUp ( ) : void
UpdateDisplay ( ) : void
_emailBox_TextChanged ( object sender, EventArgs e ) : void
_forgotLabel_LinkClicked ( object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e ) : void
_passwordBox_TextChanged ( object sender, EventArgs e ) : void
_showPasswordCheckBox_CheckedChanged ( object sender, EventArgs e ) : void
_showTermsOfUse_LinkClicked ( object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e ) : void

메소드 상세

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
리턴 void

IsValidEmail() 공개 정적인 메소드

public static IsValidEmail ( string email ) : bool
email string
리턴 bool

LogIn() 공개 메소드

This may be called by clients to log us in using the saved settings, if any.
public LogIn ( ) : bool
리턴 bool

LoginDialog() 공개 메소드

public LoginDialog ( BloomParseClient client ) : System
client BloomParseClient
리턴 System

OnClosed() 보호된 메소드

protected OnClosed ( EventArgs e ) : void
e System.EventArgs
리턴 void

OnLoad() 보호된 메소드

protected OnLoad ( EventArgs e ) : void
e System.EventArgs
리턴 void

OnShown() 보호된 메소드

protected OnShown ( EventArgs e ) : void
e System.EventArgs
리턴 void

SignUp() 공개 메소드

Adapt the dialog to use it for signup and run it. Return true if successfully signed up (or possibly logged on with an existing account).
public SignUp ( IWin32Window owner ) : bool
owner IWin32Window
리턴 bool