public Attachment(Guid documentID, string name, string description, string documentStoreID, DocumentType documentType, bool isScanned) { _documentID = documentID; _name = name; _description = description; _documentStoreID = documentStoreID; _documentType = documentType; _isScanned = isScanned; }
private void LoadAttachments() { if (_attachments == null) _attachments = new List<Attachment>(); DataSet dsAttachments = Data.Document.GetDocumentList(_managedItemID, false); foreach (DataRow row in dsAttachments.Tables[0].Rows) { DocumentType documentType = new DocumentType((string)row[Data.DataNames._C_DocumentType]); _attachments.Add(new Attachment((Guid)row[Data.DataNames._C_DocumentID], (string)row[Data.DataNames._C_DocumentName], (string)row[Data.DataNames._C_DocumentDescription], (string)row[Data.DataNames._C_DocumentStoreID], documentType, (bool)row[Data.DataNames._C_IsScanned])); } _attachmentsLoaded = true; }