Example #1
0
 private void Resultados_Click(object sender, EventArgs e)
 {
     TBMax.Text  = Convert.ToString(calfMax(notas));
     TBMin.Text  = Convert.ToString(calfMin(notas));
     TBProm.Text = Convert.ToString(promedioCalf(notas));
     notas.Clear();
     TBCalf.Focus();
     Resultados.Enabled = false;
 }
Example #2
0
 private void AgrCalf_Click(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(TBCalf.Text))
     {
         notas.Add(Convert.ToSingle(TBCalf.Text));
         TBCalf.Clear();
         TBCalf.Focus();
         if (!Resultados.Enabled)
         {
             Resultados.Enabled = true;
         }
         if (!string.IsNullOrEmpty(TBMax.Text))
         {
             TBMax.Text = TBMin.Text = TBProm.Text = null;
         }
     }
 }