C# Class Last.fm_Scrubbler_WPF.ViewModels.LoginViewModel

ViewModel for the Views.LoginView
Inheritance: Caliburn.Micro.PropertyChangedBase
ファイルを表示 Open project: coczero/Last.fm-Scrubbler-WPF

Public Methods

Method Description
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.

Method Details

ButtonPressed() public method

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.
return void

Login() public method

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.
return System.Threading.Tasks.Task

LoginViewModel() public method

Constructor.
public LoginViewModel ( ) : Caliburn.Micro
return Caliburn.Micro