C# Class Last.fm_Scrubbler_WPF.ViewModels.UserViewModel

Inheritance: Caliburn.Micro.PropertyChangedBase
ファイルを表示 Open project: coczero/Last.fm-Scrubbler-WPF Class Usage Examples

Public Methods

Method Description
AddUser ( ) : void

Add a user to the list.

LoadLastUser ( ) : void

Loads the user that was last logged in.

LoginUser ( ) : void

Logs the selected user in.

RemoveUser ( ) : void

Removes the SelectedUser from the AvailableUsers and deleted its xml file.

UserViewModel ( ) : Caliburn.Micro

Constructor. Deserializes the users.

Private Methods

Method Description
DeserializeUsers ( ) : void

Deserializes the saved users.

LoginUser ( User usr ) : void

Logs the given usr in.

SerializeUsers ( ) : void

Serializes all users in AvailableUsers to a xml file.

Method Details

AddUser() public method

Add a user to the list.
public AddUser ( ) : void
return void

LoadLastUser() public method

Loads the user that was last logged in.
public LoadLastUser ( ) : void
return void

LoginUser() public method

Logs the selected user in.
public LoginUser ( ) : void
return void

RemoveUser() public method

Removes the SelectedUser from the AvailableUsers and deleted its xml file.
public RemoveUser ( ) : void
return void

UserViewModel() public method

Constructor. Deserializes the users.
public UserViewModel ( ) : Caliburn.Micro
return Caliburn.Micro