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