Class AddUserViewModel
View Model for AddUserView.
Inheritance
Implements
Namespace: Phoenix.Users
Assembly: Phoenix.Plugin.Users.dll
Syntax
public sealed class AddUserViewModel : BindableBase, IDataErrorInfo
Constructors
View SourceAddUserViewModel(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 SourceAddUserCommand
Gets the command to add a user.
Declaration
public AsyncDelegateCommand AddUserCommand { get; }
Property Value
Type | Description |
---|---|
AsyncDelegateCommand |
CancelCommand
Gets the command to cancel this request.
Declaration
public DelegateCommand CancelCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
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> |
ConfirmPassword
Gets or sets the password's confirmation.
Declaration
public string ConfirmPassword { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Gets or sets the user's e-mail.
Declaration
public string Email { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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 |
IsValid
Gets a value indicating whether all required fields have been set correctly.
Declaration
public bool IsValid { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Password
Gets or sets the user's password.
Declaration
public string Password { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Explicit Interface Implementations
View SourceIDataErrorInfo.Error
Gets a string with error information [Not used].
Declaration
string IDataErrorInfo.Error { get; }
Returns
Type | Description |
---|---|
System.String |
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. |