Пример #1
0
 private void BtnAgregar_Click(object sender, EventArgs e)
 {
     if (txtGrupo.Text == "" || txtanula.Text == "" || txtDia.Text == "" || txthora.Text == "")
     {
         MessageBox.Show("No puede ingresar Horarios, aún faltan datos por completar", "Datos incompletos",
                         MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
     else
     {
         horarios.agregar_horarios(txtGrupo.Text, Convert.ToInt32(txtDia.SelectedIndex.ToString()), Convert.ToInt32(txthora.SelectedIndex.ToString()), Convert.ToString(txtanula.SelectedIndex.ToString()));
         MostrarTabla();
         limpiar();
     }
 }
Пример #2
0
 private void BtnAgregar_Click(object sender, EventArgs e)
 {
     horarios.agregar_horarios(Grupo.Text, Convert.ToInt32(comboBox1.SelectedIndex.ToString()), Convert.ToInt32(comboBox2.SelectedIndex.ToString()), Convert.ToString(comboBox3.SelectedIndex.ToString()));
     MostrarTabla();
     limpiar();
 }