Ejemplo n.º 1
0
 private void btnRegistrar_Click(object sender, EventArgs e)
 {
     if (c.registroExistente(Convert.ToInt32(txtMatricula.Text)) == 0)
     {
         MessageBox.Show(c.registro(Convert.ToInt32(cbxNumList.Text), Convert.ToInt32(txtMatricula.Text), txtNombre.Text, Convert.ToInt32(cbCal1.Text), Convert.ToInt32(cbCal2.Text), Convert.ToInt32(cbCal3.Text), Convert.ToInt32(cbCal4.Text), Convert.ToInt32(cbCal5.Text), Convert.ToInt32(cbCal6.Text), Convert.ToInt32(cbPromedio.Text), txtCorreo.Text, txtNotas.Text));
     }
 }
Ejemplo n.º 2
0
 private void txtMatricula_TextChanged(object sender, EventArgs e)
 {
     if (c.registroExistente(Convert.ToInt32(txtMatricula.Text)) > 0)
     {
         c.MostrarAlumno(Convert.ToInt32(txtMatricula.Text), txtNombre, txtNumList);
     }
     else
     {
         txtNombre.Text  = "";
         txtNumList.Text = "";
     }
 }
Ejemplo n.º 3
0
 private void txtMatricula_TextChanged(object sender, EventArgs e)
 {
     if (c.registroExistente(Convert.ToInt32(txtMatricula.Text)) > 0)
     {
         c.Mostrar(Convert.ToInt32(txtMatricula.Text), cbxNumList, txtNombre, cbCal1, cbCal2, cbCal3, cbCal4, cbCal5, cbCal6, cbPromedio, txtCorreo, txtNotas);
     }
     else
     {
         cbxNumList.Text = "";
         txtNombre.Text  = "";
         cbCal1.Text     = "";
         cbCal2.Text     = "";
         cbCal3.Text     = "";
         cbCal4.Text     = "";
         cbCal5.Text     = "";
         cbCal6.Text     = "";
         cbPromedio.Text = "";
         txtNombre.Text  = "";
         txtNotas.Text   = "";
     }
 }