示例#1
0
        /// <summary>
        /// This function MUST be called to populate this control with any existing documents for this item
        /// </summary>
        /// <param name="scope"></param>
        /// <param name="parentID"></param>
        public void LoadDocuments(SCOPE scope, int parentID)
        {
            _scope    = scope;
            _parentID = parentID;

            lvDocuments.Items.Clear();

            // Recover all documents for this asset
            _documents.Populate(_scope, _parentID);

            // ...and add them to the List View
            foreach (Document document in _documents)
            {
                AddDocumentToListView(document);
            }
        }