Пример #1
0
        private void SaveEtudiantBtn_Click(object sender, EventArgs e)
        {
            Stagiaire s = new Stagiaire(CNETxBx.Text, NomTxBx.Text, PrenomTxBx.Text);

            int idx = FiliereCbBx.SelectedIndex;

            FiliereTreeView.Nodes[idx].Nodes.Add(s.Nom);
            lf.Filieres[idx].Stagiaires.Add(s);

            CNETxBx.Clear();
            NomTxBx.Clear();
            PrenomTxBx.Clear();
        }
Пример #2
0
        // the class to be public so that the prog can see it, even within the same namespace
        //public Stagiaire SearchStagiaire(int n)
        //{
        //    foreach (Stagiaire s in lstgs)
        //        if (s.Num.Equals(n))
        //            return s;
        //    return null;
        //}

        public void Reset()
        {
            NumTxBx.Clear();
            NomTxBx.Clear();
            PrenomTxBx.Clear();
        }