Exemplo n.º 1
0
        /// <summary>
        /// Load all of the hardware / system items audited for this asset
        /// </summary>
        /// <returns>Count of items added to the list</returns>
        public int PopulateAuditedItems()
        {
            AuditedItemsDAO lwDataAccess = new AuditedItemsDAO();

            _listAuditedItems = new AuditedItemList(lwDataAccess.GetAuditedItems(AssetID, "", true));
            return(_listAuditedItems.Count);
        }
Exemplo n.º 2
0
        public IconMappings(AuditedItemsDAO lwDataAccess)
        {
            // Populate our internal list
            DataTable tableIcons = lwDataAccess.GetIconMappings();

            foreach (DataRow row in tableIcons.Rows)
            {
                IconMapping mapping = new IconMapping(row);
                this.Add(mapping);
            }
        }