private void button3_Click(object sender, EventArgs e) { tree = new BinaryTree(); string[] lines = System.IO.File.ReadAllLines(@"../tree.txt"); foreach(string line in lines) { tree.insertValue(Convert.ToInt32(line)); richTextBox1.AppendText(line); } }
public Form1() { InitializeComponent(); tree = new BinaryTree(); }