Example #1
0
        private void btReussis_Click(object sender, EventArgs e)
        {
            List <Student> .Enumerator liste = ClientStd.GetReussis().GetEnumerator();
            string s = "";

            while (liste.MoveNext())
            {
                s += liste.Current + "\n";
            }
            lbReussis.Text = s;
        }
Example #2
0
        private void btRech_Click(object sender, EventArgs e)
        {
            if (tbNom.Text.Trim() == "")
            {
                MessageBox.Show("Vous devez saisir un text dans le nom");
                return;
            }
            List <Student> .Enumerator liste = ClientStd.GetParNom(tbNom.Text).GetEnumerator();
            string s = "";

            while (liste.MoveNext())
            {
                s += liste.Current + "\n";
            }
            lbRechNom.Text = s;
        }
Example #3
0
        private void btRechNda_Click(object sender, EventArgs e)
        {
            if (tbNda.Text.Trim() == "")
            {
                MessageBox.Show("Vous devez saisir un text dans le nom");
                return;
            }
            Student std = ClientStd.GetParNDA(tbNda.Text);

            if (std != null)
            {
                lbRechNda.Text = std.ToString();
            }
            else
            {
                lbRechNda.Text = "Introuvable";
            }
        }
Example #4
0
 private void btMoy_Click(object sender, EventArgs e)
 {
     lbMoyenne.Text = ClientStd.GetMoyenne().ToString();
 }