Académique Documents
Professionnel Documents
Culture Documents
public Form1()
{
InitializeComponent();
}
void novoExame(int x)
{
exames[x] = lista.SelectedItem.ToString();
}
1 de 2
private void btGravar_Click(object sender, EventArgs e)
{
pos = Convert.ToInt32(txNota1.Text);
pos = Convert.ToInt32(txNota2.Text);
notas[pos - 1] = Convert.ToInt32(txNota1.Text);
notas[pos - 1] = Convert.ToInt32(txNota2.Text);
}
string estatistica()
{
int n1 = Convert.ToInt32(txNota1.Text);
int n2 = Convert.ToInt32(txNota2.Text);
string info = txExamesAprovados.Text;
else if ((n1 > 700 && n2 <= 700) || (n1 <= 700 && n2 > 700))
info = "1";
return info;
}
2 de 2