Esempio n. 1
0
        /// <summary>
        /// Load the contents of the wiff file specified by <paramref name="filePath"/>
        /// </summary>
        /// <param name="filePath">A <see cref="string"/> containing the full qualified path to the wiff file.</param>
        /// <returns>A <see cref="ISpecFileContent"/> reference to a object containing the loaded data.</returns>
        public ISpecFileContent Load(string filePath)
        {
            Document document = new Document();

            document.FileName     = filePath;
            document.DocumentName = Path.GetFileNameWithoutExtension(filePath);
            WiffFileContent wiffContent = new WiffFileContent(document, filePath);

            if (!wiffContent.LoadContent())
            {
                document = null;
                return(null);
            }

            document.Content = wiffContent;
            return(wiffContent);
        }
Esempio n. 2
0
        /// <summary>
        /// Load the contents of the wiff file specified by <paramref name="filePath"/>
        /// </summary>
        /// <param name="filePath">A <see cref="string"/> containing the full qualified path to the wiff file.</param>
        /// <returns>A <see cref="ISpecFileContent"/> reference to a object containing the loaded data.</returns>
        public ISpecFileContent Load(string filePath)
        {
            var document = new Document
            {
                FileName = filePath, DocumentName = Path.GetFileNameWithoutExtension(filePath)
            };

            var wiffContent = new WiffFileContent(document, filePath);

            if (!wiffContent.LoadContent())
            {
                return(null);
            }

            document.Content = wiffContent;
            return(wiffContent);
        }