Ejemplo n.º 1
0
        private void exploreNode_Click(object sender, EventArgs e)
        {
            Node n = filteredNodes.SelectedItem as Node;

            if (n != null)
            {
                NodeForm nodeForm = new NodeForm(_graph, n);
                nodeForm.Show();
            }
        }
Ejemplo n.º 2
0
        private static void ExploreSelectedItem(Graph graph, ListBox listbox)
        {
            if (listbox.SelectedItem == null)
            {
                return;
            }

            BoxDisplay selected = (BoxDisplay)listbox.SelectedItem;

            NodeForm nodeForm = new NodeForm(graph, selected.node);

            nodeForm.Show();
        }
Ejemplo n.º 3
0
        private static void ExploreSelectedItem(Graph graph, ListBox listbox)
        {
            if (listbox.SelectedItem == null)
            {
                return;
            }

            KeyValuePair <Node, string> pair = (KeyValuePair <Node, string>)listbox.SelectedItem;

            NodeForm nodeForm = new NodeForm(graph, pair.Key);

            nodeForm.Show();
        }