Esempio n. 1
0
        public void BuildGraph()
        {
            NodeData.Clear();
            Clear(true);
            EdgeGUI.EdgesData.Clear();
            foreach (SmartGraphConnection call in SmartGraphPopulator.FindAllEvents())
            {
                NodeData.RegisterEvent(call);
            }
            foreach (NodeData data in NodeData.Nodes)
            {
                AddNode(NodeGUI.Create(data));
            }

            foreach (NodeGUI node in nodes)
            {
                node.PopulateEdges();
            }

            SortGraph();
        }
Esempio n. 2
0
        private void BuildGraph()
        {
            NodeData.ClearAll();
            Clear(true);
            foreach (SmartGraphConnection call in SmartGraphPopulator.FindAllEvents())
            {
                NodeData.RegisterEvent(call);
            }

            foreach (NodeData data in NodeData.Nodes)
            {
                NodeGUI node = NodeGUI.Create(data);
                if (!nodes.Contains(node))
                {
                    AddNode(node);
                }
            }
            foreach (NodeGUI node in nodes)
            {
                node.PopulateEdges();
            }
        }