Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Tarea nuevaTarea = new Tarea(textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text);
            Nodo  n          = new Nodo(nuevaTarea);

            b.insertar(n);
            MessageBox.Show("Agregado Exitosamente");
            textBox1.Text = "";
            textBox2.Text = "";
            textBox3.Text = "";
            textBox4.Text = "";
        }
Exemple #2
0
        private void button5_Click(object sender, EventArgs e)
        {
            Nodo resultado = b.buscar(new Tarea(textBox5.Text));

            if (resultado == null)
            {
                MessageBox.Show("No se encontro el resultado");
            }
            else
            {
                Tarea t = (Tarea)resultado.valorNodo();

                MessageBox.Show("Encontrado: Nombre:" + t.nombre() + " Duracion: " + t.duracion() + "  Porcentaje: " + t.porcentaje() + " Programador: " + t.programador());
            }
        }
Exemple #3
0
        public string visitar()
        {
            Tarea t = ((Tarea)dato);

            return(t.nombre() + " | " + t.porcentaje() + " | " + t.duracion() + " | " + t.programador() + "-");
        }