Exemplo n.º 1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="userInformation"></param>
 public SecurityViewModel(UserInformation userInformation)
 {
     _security        = new RoleUserSecurityModel();
     _securitydet     = new RoleUserSecurityDet(userInformation);
     _userInformation = userInformation;
     _securitydet.GetUsers(RoleUserSecurities);
     _securitydet.GetRoles(RoleUserSecurities);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="userInformation"></param>
 public SecurityViewModel(UserInformation userInformation)
 {
     _security           = new RoleUserSecurityModel();
     _securitydet        = new RoleUserSecurityDet(userInformation);
     this._modifyCommand = new DelegateCommand <DataRowView>(this.ModifyUsers);
     this._deleteCommand = new DelegateCommand <DataRowView>(this.DeleteUsers);
     this._addCommand    = new DelegateCommand <DataView>(this.AddUsers);
     _userInformation    = userInformation;
     _userRoleDet        = new UserRoleDet(_userInformation);
     _securitydet.GetUsers(RoleUserSecurities);
     _securitydet.GetRoles(RoleUserSecurities);
     DefaultSelectedItem();
 }