Пример #1
0
 public void AddNode(CompendiumNode node)
 {
     if (!IsNodeExist(node))
     {
         var xmlNode = new XmlNode.XmlNode(node, Doc, _xmlElementNodes);
         xmlNode.CreateElement();
         Nodes.Add(node);
     }
 }
Пример #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);
        }
Пример #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);
        }
Пример #4
0
        public void AddReferenceLink(Guid mapId, CompendiumNode refenceNode, CompendiumNode originNode)
        {
            var xmlLink = new ReferenceLink(mapId, refenceNode, originNode, Doc, _xmlElementLinks);

            xmlLink.CreateElement();
        }
Пример #5
0
        public void AddView(Guid mapId, CompendiumNode node)
        {
            var xmlView = new View(mapId, node, Doc, _xmlElementViews);

            xmlView.CreateElement();
        }