Esempio n. 1
0
 public CreateOrEditUserViewModel(IChangeViewModel viewModelChanger, User userToEdit, ICreatedUser createdUserCallback) : base(viewModelChanger)
 {
     _isCreating              = false;
     _user                    = userToEdit;
     ScreenTitle              = "Edit User";
     PasswordTitle            = "New Password";
     ConfirmPasswordTitle     = "Confirm New Password";
     ShouldShowPasswordFields = false;
     ErrorMessage             = "";
     _createdUserCallback     = createdUserCallback;
 }
Esempio n. 2
0
 public CreateOrEditUserViewModel(IChangeViewModel viewModelChanger, ICreatedUser createdUserCallback) : base(viewModelChanger)
 {
     _isCreating              = true;
     _user                    = new User();
     _user.Permissions        = new UserPermissions();
     ScreenTitle              = "Add User";
     PasswordTitle            = "Password";
     ConfirmPasswordTitle     = "Confirm Password";
     ShouldShowPasswordFields = true;
     ErrorMessage             = "";
     _createdUserCallback     = createdUserCallback;
 }