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); }
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); }