Esempio n. 1
0
        public AddUserViewModel()
        {
            var dataUnitLocator = ContainerAccessor.Instance.GetContainer().Resolve<IDataUnitLocator>();
            _adminDataUnit = dataUnitLocator.ResolveDataUnit<IAdminDataUnit>();

            _saltedHash = new SaltedHash();

            OkCommand = new RelayCommand(OkCommandExecuted, OkCommandCanExecute);

            AddUser();
        }
Esempio n. 2
0
        public UsersViewModel()
        {
            var dataUnitLocator = ContainerAccessor.Instance.GetContainer().Resolve<IDataUnitLocator>();
            _adminDataUnit = dataUnitLocator.ResolveDataUnit<IAdminDataUnit>();

            _saltedHash = new SaltedHash();

            SaveChangesCommand = new RelayCommand(SaveChangesCommandExecuted, SaveChangesCommandCanExecute);
            DeleteUserCommand = new RelayCommand(DeleteUserCommandExecuted, DeleteUserCommandCanExecuted);
            AddUserCommand = new RelayCommand(AddUserCommandExecuted);
            EditUserPasswordCommand = new RelayCommand(EditUserPasswordCommandExecuted, EditUserPasswordCommandCanExecute);
        }