예제 #1
0
        public alimentationBdd()
        {
            InitializeComponent();
            ConnectionMySql.Connection("root", "siojjr", "rallyeLecture", "172.16.0.174");
            MySqlConnection cnx = ConnectionMySql.GetConnection();

            cbRepertoire.Click         += new EventHandler(cbRepertoire_Click);
            cbAleatoire.Click          += new EventHandler(cbAleatoire_Click);
            cbConstruit.Click          += new EventHandler(cbConstruit_Click);
            btnLancerIntegration.Click += new EventHandler(btnLancerIntegration_Click);
            TableNiveau   tableNiveau = new TableNiveau();
            List <Niveau> niveau      = tableNiveau.GetAll();

            foreach (Niveau liste in niveau)
            {
                cmbNiveau.Items.Add(liste.NiveauScolaire);
            }

            List <Eleve> Nom       = new List <Eleve>();
            LesEleves    LesEleves = new LesEleves();
            //PassWordType type = PassWordType.Aleatoire;
            //Nom = LesEleves.LoadCsv(type);

            // for (int i = 0; i < Nom.Count; i++)
            //  {
            //  cblIntegrer.Items.Add(Nom[i].ToString());

            //  }
            //LesEleves.CreateCsvPasswordFile();
        }
예제 #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            TableNiveau niveau = new TableNiveau();

            for (int i = 0; i < niveau.GetAll().Count; i++)
            {
                niveauLabel.Items.Add(niveau.GetAll()[i].GetNiveauScolaire());
                niveauLabel.Tag = niveau.GetAll()[i].GetId();;
            }
        }