Exemple #1
0
 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);
     }
 }
Exemple #2
0
 public Form1()
 {
     InitializeComponent();
     tree = new BinaryTree();
 }