示例#1
0
 public RoleModel(Mysql mysqlConnection)
 {
     roleFunctions = new RoleDBFunctions(mysqlConnection);
         currentRole = null;
     LoadRoleList();
 }
示例#2
0
 public void LoadRole(int roleID, string roleName)
 {
     currentRole = new Role();
     currentRole.id = roleID;
     currentRole.name = roleName;
     LoadPermissionsOfRole();
 }
示例#3
0
 public void UnsetRole()
 {
     currentRole = null;
 }