예제 #1
0
        /// <summary>
        /// Initializes the <see cref="Document"/>.
        /// </summary>
        void Load()
        {
            if (Uri != null && Modules != null)
            {
                var cfg = new NXDocumentConfiguration();
                foreach (var moduleType in Modules)
                {
                    cfg.AddModule(moduleType);
                }

                Document = new NXDocument(new Resolver(), Uri, cfg);
            }
            else
            {
                Document = null;
            }
        }
예제 #2
0
        /// <summary>
        /// Initializes the <see cref="Document"/>.
        /// </summary>
        void Load()
        {
            if (Uri != null && Modules != null)
            {
                var cfg = new NXDocumentConfiguration();
                foreach (var moduleType in Modules)
                    cfg.AddModule(moduleType);

                Document = new NXDocument(new Resolver(), Uri, cfg);
            }
            else
                Document = null;
        }