public GenealogicalTreeTable(string[] table, RunAndStrartTree runAndStrartTree) { InitializeComponent(); this.runAndStrartTree = runAndStrartTree; this.table = table; listBox1.Items.AddRange(table); }
public GenealogicalTree(Tree tree, Graph graph, RunAndStrartTree runAndStrartTree) { InitializeComponent(); this.graph = graph; pictureBox1.Size = new System.Drawing.Size(140, 140); pictureBox1.Image = tree.GetTree(); this.runAndStrartTree = runAndStrartTree; }
public SearchPresenter(string str) { int[] find = Search.SearchAll(str); if (find == null) { MessageBox.Show("No such person"); } else if (find.Length == 1) { RunAndStrartTree runAndStrartTree = new RunAndStrartTree(find[0]); } else { var contId = new ContainerId(); ShowTreeList showTreeList = new ShowTreeList(find, contId); showTreeList.ShowDialog(); RunAndStrartTree runAndStrartTree = new RunAndStrartTree(contId.ID); } }