示例#1
0
        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;
                }
            }
        }
示例#2
0
 private void BtnCancelar_Click(object sender, EventArgs e)
 {
     TxtCal1.Clear();
     TxtCal2.Clear();
     TxtCal3.Clear();
     TxtCal4.Clear();
     TxtProm.Clear();
 }
示例#3
0
 private void BtnCancelar_Click(object sender, EventArgs e)
 {
     TxtNot1.Clear();
     TxtNot2.Clear();
     TxtNot3.Clear();
     TxtProm.Clear();
     TxtEstado.Clear();
     TxtNot1.Focus();
 }
示例#4
0
 private void BtnLimpiar_Click(object sender, EventArgs e)
 {
     TxtN1.Clear();
     TxtN2.Clear();
     TxtN3.Clear();
     TxtN4.Clear();
     TxtProm.Clear();
     TxtN1.Focus();
 }
示例#5
0
 private void BtnCancelar_Click(object sender, EventArgs e)
 {
     TxtProm.Clear();
     LstMostrar.Items.Clear();
     LstObs.Items.Clear();
 }