C# 클래스 Last.fm_Scrubbler_WPF.ViewModels.LoginViewModel

ViewModel for the Views.LoginView
상속: Caliburn.Micro.PropertyChangedBase
파일 보기 프로젝트 열기: coczero/Last.fm-Scrubbler-WPF

공개 메소드들

메소드 설명
ButtonPressed ( System.Windows.Input.KeyEventArgs e, Window win, string username, System.Windows.Controls.PasswordBox password ) : void

Logs the user in if the enter key is pressed.

Login ( Window win, string username, System.Windows.Controls.PasswordBox password ) : System.Threading.Tasks.Task

Tries to log the user in with the given credentials.

LoginViewModel ( ) : Caliburn.Micro

Constructor.

메소드 상세

ButtonPressed() 공개 메소드

Logs the user in if the enter key is pressed.
public ButtonPressed ( System.Windows.Input.KeyEventArgs e, Window win, string username, System.Windows.Controls.PasswordBox password ) : void
e System.Windows.Input.KeyEventArgs EventArgs containing the pressed key.
win System.Windows.Window The calling .
username string The username.
password System.Windows.Controls.PasswordBox The containing the password.
리턴 void

Login() 공개 메소드

Tries to log the user in with the given credentials.
public Login ( Window win, string username, System.Windows.Controls.PasswordBox password ) : System.Threading.Tasks.Task
win System.Windows.Window The calling .
username string The username.
password System.Windows.Controls.PasswordBox The containing the password.
리턴 System.Threading.Tasks.Task

LoginViewModel() 공개 메소드

Constructor.
public LoginViewModel ( ) : Caliburn.Micro
리턴 Caliburn.Micro