public static void UsageText() { var nodes = new NodeText[5]; nodes[0] = new NodeText("0"); nodes[0].Add(nodes[1] = new NodeText("1")); nodes[0].Add(nodes[2] = new NodeText("2")); nodes[2].Add(nodes[3] = new NodeText("3")); nodes[2].Add(nodes[4] = new NodeText("4")); }
public static void UsageGeneric() { var nodes = new INode[5]; nodes[0] = new Node(0); nodes[0].Add(nodes[1] = new NodeNumeric(1)); nodes[0].Add(nodes[2] = new NodeText("2")); nodes[2].Add(nodes[3] = new Node <int>(3)); nodes[2].Add(nodes[4] = new Node <string>("4")); }
private void Execute(bool first) { if (listBox1.Items.Count == 0) { return; } NodeText n = (first ? listBox1.Items[0] : listBox1.SelectedItem) as NodeText; if (n != null) { axprof.Activate(n.n); this.Hide(); } }
private void Window_Loaded(object sender, RoutedEventArgs e) { NodeText.Focus(); }