예제 #1
0
파일: User.cs 프로젝트: nhtera/Home
        public void addWebsiteSecurityItem(string feature, List <bool> security)
        {
            structSecurityFeature s = new structSecurityFeature();

            for (int x = 0; x <= securityItems.Count - 1; x++)
            {
                if (securityItems[x].feature == feature)
                {
                    s                = securityItems[x];
                    s.security       = security;
                    securityItems[x] = s;
                    return;
                }
            }
            s.feature  = feature;
            s.security = security;
            securityItems.Add(s);
        }
예제 #2
0
파일: User.cs 프로젝트: nhtera/Home
 public void addWebsiteSecurityItem(string feature, List<bool> security)
 {
     structSecurityFeature s = new structSecurityFeature();
     for (int x = 0; x <= securityItems.Count - 1; x++)
     {
         if (securityItems[x].feature == feature)
         {
             s = securityItems[x];
             s.security = security;
             securityItems[x] = s;
             return;
         }
     }
     s.feature = feature;
     s.security = security;
     securityItems.Add(s);
 }