private void BtnCalcular_Click(object sender, EventArgs e) { if (TxtProm.Text.Trim().Length == 0) { MessageBox.Show("Ingrese un dato"); TxtProm.Focus(); return; } int i; double prom; prom = Convert.ToDouble(TxtProm.Text.Trim()); for (i = 1; i <= 10; i++) { if (prom >= 65) { LstMostrar.Items.Add(TxtProm.Text.Trim()); LstObs.Items.Add("APROBADO"); TxtProm.Clear(); TxtProm.Focus(); return; } else { LstMostrar.Items.Add(TxtProm.Text.Trim()); LstObs.Items.Add("REPROBADO"); TxtProm.Clear(); TxtProm.Focus(); return; } } }
private void BtnCancelar_Click(object sender, EventArgs e) { TxtCal1.Clear(); TxtCal2.Clear(); TxtCal3.Clear(); TxtCal4.Clear(); TxtProm.Clear(); }
private void BtnCancelar_Click(object sender, EventArgs e) { TxtNot1.Clear(); TxtNot2.Clear(); TxtNot3.Clear(); TxtProm.Clear(); TxtEstado.Clear(); TxtNot1.Focus(); }
private void BtnLimpiar_Click(object sender, EventArgs e) { TxtN1.Clear(); TxtN2.Clear(); TxtN3.Clear(); TxtN4.Clear(); TxtProm.Clear(); TxtN1.Focus(); }
private void BtnCancelar_Click(object sender, EventArgs e) { TxtProm.Clear(); LstMostrar.Items.Clear(); LstObs.Items.Clear(); }