Exemplo n.º 1
0
 public Link(FrameworkElement from, FrameworkElement to, MapData.NodesRow fromNode, MapData.NodesRow toNode) : this()
 {
     this.fromElement = from;
     if (fromNode != null)
     {
         this.fromColor = Style.ConvertColor(fromNode.NodeStyle.FillColor);
     }
     this.toElement = to;
     if (toNode != null)
     {
         this.toColor = Style.ConvertColor(toNode.NodeStyle.FillColor);
     }
 }
Exemplo n.º 2
0
    private void SetSpace(string id, XmlNode node, string parentId)
    {
        string name = string.Empty;

        if (node.SelectSingleNode("OneBoundary") != null)
        {
            name = this.map.GetNodeById(id).Name;
        }
        else
        {
            MapData.NodesRow nodeById = this.map.GetNodeById(parentId);
            if (!((nodeById == null) || nodeById.IsSpaceEmpty))
            {
                name = nodeById.SpaceName;
            }
        }
        if (!string.IsNullOrEmpty(name))
        {
            this.map.ChangeNodeSpace(id, name);
        }
    }