Beispiel #1
0
 public roleModel deleteRole(string roleName)
 {
     for (int i = 0; i < roles.Length; ++i)
     {
         if (roles [i] != null && roles [i].getName() == roleName)
         {
             roleModel role = roles [i];
             roles [i] = null;
             return(role);
         }
     }
     return(null);
 }
Beispiel #2
0
 public void setRole(roleModel role)
 {
     this.role = role;
 }
Beispiel #3
0
 public void addRole(roleModel role)
 {
     roles [getEmptyPosIndex()] = role;
 }