Show / Hide Table of Contents

Class AddUserViewModel

View Model for AddUserView.

Inheritance
System.Object
AddUserViewModel
Implements
System.ComponentModel.IDataErrorInfo
Namespace: Phoenix.Users
Assembly: Phoenix.Plugin.Users.dll
Syntax
public sealed class AddUserViewModel : BindableBase, IDataErrorInfo

Constructors

View Source

AddUserViewModel(UserManagementViewModel, Boolean, IPhoenixLogger)

Initializes a new instance of the AddUserViewModel class.

Declaration
public AddUserViewModel(UserManagementViewModel userManagement, bool fromDeviceList, IPhoenixLogger logger)
Parameters
Type Name Description
UserManagementViewModel userManagement

Class handling the user management for Phoenix.

System.Boolean fromDeviceList

Indicates if the request came from the device user list or from the master user list.

IPhoenixLogger logger

Logger for the User Management Module.

Properties

View Source

AddUserCommand

Gets the command to add a user.

Declaration
public AsyncDelegateCommand AddUserCommand { get; }
Property Value
Type Description
AsyncDelegateCommand
View Source

CancelCommand

Gets the command to cancel this request.

Declaration
public DelegateCommand CancelCommand { get; }
Property Value
Type Description
DelegateCommand
View Source

CloseAction

Gets or sets an action used to close the associated window.

Declaration
public Action<bool> CloseAction { get; set; }
Property Value
Type Description
System.Action<System.Boolean>
View Source

ConfirmPassword

Gets or sets the password's confirmation.

Declaration
public string ConfirmPassword { get; set; }
Property Value
Type Description
System.String
View Source

Email

Gets or sets the user's e-mail.

Declaration
public string Email { get; set; }
Property Value
Type Description
System.String
View Source

FromDeviceUserList

Gets or sets a value indicating whether the request came from the master list or the device list.

Declaration
public bool FromDeviceUserList { get; set; }
Property Value
Type Description
System.Boolean
View Source

IsValid

Gets a value indicating whether all required fields have been set correctly.

Declaration
public bool IsValid { get; }
Property Value
Type Description
System.Boolean
View Source

Password

Gets or sets the user's password.

Declaration
public string Password { get; set; }
Property Value
Type Description
System.String

Explicit Interface Implementations

View Source

IDataErrorInfo.Error

Gets a string with error information [Not used].

Declaration
string IDataErrorInfo.Error { get; }
Returns
Type Description
System.String
View Source

IDataErrorInfo.Item[String]

Gets a string with the validation errors if any.

Declaration
string IDataErrorInfo.this[string propertyName] { get; }
Parameters
Type Name Description
System.String propertyName

Name of the property to validate.

Returns
Type Description
System.String

Null if there was no error or a string indicating the error.

Implements

System.ComponentModel.IDataErrorInfo
  • View Source
In This Article
Back to top Generated by DocFX