C# Class Last.fm_Scrubbler_WPF.ViewModels.LoginViewModel

ViewModel for the Views.LoginView
Inheritance: Caliburn.Micro.PropertyChangedBase
Afficher le fichier Open project: coczero/Last.fm-Scrubbler-WPF

Méthodes publiques

Méthode 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 méthode

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.
Résultat void

Login() public méthode

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.
Résultat System.Threading.Tasks.Task

LoginViewModel() public méthode

Constructor.
public LoginViewModel ( ) : Caliburn.Micro
Résultat Caliburn.Micro