Ejemplo n.º 1
0
        /// <summary>
        /// Check document against NormaCS Database
        /// </summary>
        /// <returns>Found documents</returns>
        public HashSet <Document> Check()
        {
            HashSet <NormaCSAPI.Document> nDocs = Checker.findDocument(this.Index, this.Number);
            HashSet <Document>            docs  = new HashSet <Document>();

            if (nDocs.Count > 0)
            {
                docs = Document.convertNormaCSDocList(OriginalName, nDocs);
                this.HasNormaCSReference = true;
            }
            return(docs);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Document constructor
        /// </summary>
        /// <param name="origName">Standard name in original file</param>
        /// <param name="doc">NormaCSAPI.Document object</param>
        public Document(string origName, NormaCSAPI.Document doc)
        {
            this.DWGName   = origName;
            this.FoundName = doc.Designation;
            this.IsActual  = doc.get_IsActual();
            this.URL       = doc.URL;

            HashSet <NormaCSAPI.Document> replaces = findReplacements(doc);

            if (replaces.Count > 0)
            {
                this.Replaced = Document.convertNormaCSDocList(this.DWGName, replaces);
            }
        }