Ejemplo n.º 1
0
 public void Add(object a, EventArgs e)
 {
     if (this.Nodes.Count <= 1)
     {
         NN fx = new NN();
         fx.ShowDialog();
         this.Nodes.Add(new Nod(fx.name, false));
         this.Expand();
     }
     else
     {
         MessageBox.Show("Дерево бинарное!");
     }
 }
Ejemplo n.º 2
0
 public void Ren(object a, EventArgs e)
 {
     if (this.Nodes.Count <= 1)
     {
         NN fx = new NN();
         fx.ShowDialog();
         this.Text = fx.name;
         this.Expand();
     }
     else
     {
         MessageBox.Show("Дерево бинарное!");
     }
 }