public void AddNode(CompendiumNode node)
 {
     if (!IsNodeExist(node))
     {
         var xmlNode = new XmlNode.XmlNode(node, Doc, _xmlElementNodes);
         xmlNode.CreateElement();
         Nodes.Add(node);
     }
 }
Exemple #2
0
        public CompendiumNode(IRelationship relationship, INode node) : base(relationship, node)
        {
            Source = FindMetadata("Link");

            Description   = FindMetadata("Description");
            ExtraMetadata = FindExtraMetadata();



            if (!string.IsNullOrEmpty(Source))
            {
                _referenceNode = new CompendiumNode(this, relationship);
            }

            Initialise(node);
        }
Exemple #3
0
        private CompendiumNode(CompendiumNode node, IRelationship orginRelationship)
        {
            Relationship = orginRelationship;
            Id           = Guid.NewGuid();
            Proxy        = node.Proxy;
            Name         = node.Source;
            NodeType     = Proxy.MapManager.NodeTypes["CompendiumReferenceNode"];

            XPosition = (XPosition + 140);
            YPosition = (YPosition + 140);

            Source = FindMetadata("Link");

            Description   = string.Empty;
            ExtraMetadata = string.Empty;

            Initialise(node.Proxy);
        }
        public void AddReferenceLink(Guid mapId, CompendiumNode refenceNode, CompendiumNode originNode)
        {
            var xmlLink = new ReferenceLink(mapId, refenceNode, originNode, Doc, _xmlElementLinks);

            xmlLink.CreateElement();
        }
        public void AddView(Guid mapId, CompendiumNode node)
        {
            var xmlView = new View(mapId, node, Doc, _xmlElementViews);

            xmlView.CreateElement();
        }