private void btnAgregar_Click(object sender, RoutedEventArgs e) { Input IP = new Input(); IP.ShowDialog(); Ar.Insertar(IP.Resultado); Canvas.Children.Clear(); DibujarNodo(Ar.Raiz, Top, Left); }
static void Main(string[] args) { Console.WriteLine("Ingresa la raiz del arbol"); int b = RecibirNumero(); Arbol.Arbol A = new Arbol.Arbol(b); int c = 0; while (c < 9) { Console.WriteLine("Ingrese el siguiente hijo"); b = RecibirNumero(); A.Insertar(b); c++; } Console.WriteLine("Ingrese el dato a eliminar"); b = RecibirNumero(); A.Eliminar(b); }