public void DropSecurityProfile(string pSecProf) { Security_profile defoult = new Security_profile("default"); for (int i = 0; i < users.Count; i++) { if (users.ElementAt(i).GetSecurity_Profile().GetName() == pSecProf) { users.ElementAt(i).SetSecurityProfile(defoult); } } }
public void SetSecurityProfile(Security_profile pSec) { secprof = pSec; }
public User(string pName, string pPassword, Security_profile pSecprof) { name = pName; password = pPassword; secprof = pSecprof; }