Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConceptualGroup"/> class with
 /// parameters copied from the specified argument, a copy constructor.
 /// </summary>
 /// <param name="source">
 /// An instance of the <see cref="ConceptualGroup"/> class specifying the initial
 /// properties and states for this newly created instance.
 /// </param>
 /// <exception cref="ArgumentNullException">
 /// If the <paramref name="source"/> is <see langword="null"/>.
 /// </exception>
 public ConceptualGroup(ConceptualGroup source)
     : base(source)
 {
     _documentId      = source._documentId;
     _projectId       = source._projectId;
     _repositoryId    = source._repositoryId;
     _projectName     = source._projectName;
     _projectTitle    = source._projectTitle;
     _docWriter       = source._docWriter;
     _docEditor       = source._docEditor;
     _docManager      = source._docManager;
     _fileVersion     = source._fileVersion;
     _freshnessFormat = source._freshnessFormat;
     _freshnessDate   = source._freshnessDate;
     _topicSource     = source._topicSource;
     _topicContent    = source._topicContent;
     _changeHistory   = source._changeHistory;
 }
Ejemplo n.º 2
0
        protected override void OnReadXml(XmlReader reader)
        {
            if (String.Equals(reader.Name, ConceptualSource.TagName,
                              StringComparison.OrdinalIgnoreCase))
            {
                if (_topicSource == null)
                {
                    _topicSource = ConceptualSource.CreateSource(
                        reader.GetAttribute("name"));
                }

                if (_topicSource == null)
                {
                    throw new BuildException(String.Format(
                                                 "The creation of the conceptual content source '{0}' failed.",
                                                 reader.GetAttribute("name")));
                }

                _topicSource.ReadXml(reader);
            }
        }