示例#1
0
 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;
 }
示例#2
0
 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;
 }