Beispiel #1
0
        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);
                }
            }
        }
Beispiel #2
0
 public void SetSecurityProfile(Security_profile pSec)
 {
     secprof = pSec;
 }
Beispiel #3
0
 public User(string pName, string pPassword, Security_profile pSecprof)
 {
     name     = pName;
     password = pPassword;
     secprof  = pSecprof;
 }