/// <summary> /// Expand the Children for an OS based field /// </summary> /// <param name="field"></param> /// <param name="returnDictionary"></param> protected void ExpandOSFieldChildren(string osField) { // If we have not already done so populate the cached list of Operating Systems if (_cacheOperatingSystemList == null) { _cacheOperatingSystemList = new InstalledOSList(); } // All or a specific field - if there is a delimiter then assume a specific field if (osField.LastIndexOf("|") == -1) { // No delimiter so add ALL OS fields string field = osField + @"|" + OSInstance.GetAttributeName(OSInstance.eAttributes.family); this.Add(new AuditDataReportColumn(AuditDataReportColumn.eFieldType.os, field, GetLabelForField(field))); // field = osField + @"|" + OSInstance.GetAttributeName(OSInstance.eAttributes.fullname); this.Add(new AuditDataReportColumn(AuditDataReportColumn.eFieldType.os, field, GetLabelForField(field))); // field = osField + @"|" + OSInstance.GetAttributeName(OSInstance.eAttributes.cdkey); this.Add(new AuditDataReportColumn(AuditDataReportColumn.eFieldType.os, field, GetLabelForField(field))); // field = osField + @"|" + OSInstance.GetAttributeName(OSInstance.eAttributes.serial); this.Add(new AuditDataReportColumn(AuditDataReportColumn.eFieldType.os, field, GetLabelForField(field))); } else { this.Add(new AuditDataReportColumn(AuditDataReportColumn.eFieldType.os, osField, GetLabelForField(osField))); } }
/// <summary> /// Populate our cached lists /// </summary> public void ResetCache() { _cachedApplicationsList = null; _cachedUserDataList = null; _cacheOperatingSystemList = null; }