private void btnAdd_Click(object sender, EventArgs e) { Hello = new Alumno(txnumCuenta.Text,txName.Text, cbGroup.SelectedItem + "",Convert.ToDouble(txProm.Text)); tvShow.Nodes[cbGroup.SelectedItem.ToString()].Nodes.Add(Hello.NumCuenta +"", Hello.ToString()); contAlumnos.Add(Hello.NumCuenta, Hello); gBAlumno.Visible = false; btnNewAlumno.Visible = true; }
private void tvShow_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e) { string Key = e.Node.Name; Hello = (Alumno)contAlumnos[Key]; gBAlumno.Visible = true; txName.Text = Hello.Nombre; txnumCuenta.Text = Hello.NumCuenta; txProm.Text = Hello.Promedio + ""; cbGroup.Text = Hello.Grupo; }