public FormAjouterUnBateau(MySqlConnection mySqlConnection)
        {
            InitializeComponent();
            this.mySqlConnection = mySqlConnection;

            int i = 0;

            foreach (SQLCategorie sqlCategorie in SQLCategorie.GetAllSQLCategorie(mySqlConnection))
            {
                TextBox textBoxCategorie = new TextBox();
                textBoxCategorie.Location  = new System.Drawing.Point(145, 15 + 25 * i);
                textBoxCategorie.Name      = "textBox" + sqlCategorie.ToString();
                textBoxCategorie.Size      = new System.Drawing.Size(100, 20);
                textBoxCategorie.TabIndex  = 0;
                textBoxCategorie.KeyPress += new KeyPressEventHandler(this.TextBoxCapacite_KeyPress);
                dictionary_TextBox_SQLCategorie.Add(textBoxCategorie, sqlCategorie);

                Label labelCategorie = new Label();
                labelCategorie.AutoSize = true;
                labelCategorie.Location = new System.Drawing.Point(5, 20 + 25 * i);
                labelCategorie.Name     = "label" + sqlCategorie.ToString();
                labelCategorie.Size     = new System.Drawing.Size(100, 15);
                labelCategorie.TabIndex = 0;
                labelCategorie.Text     = sqlCategorie.ToString() + " :";

                groupBoxCapacitesMaximalesParType.Controls.Add(textBoxCategorie);
                groupBoxCapacitesMaximalesParType.Controls.Add(labelCategorie);

                i++;
            }
        }
 public FormAfficherLesTraverseesPourUneLiaisonEtUneDateDonneeAvecPlacesRestantesParCategorie(MySqlConnection mySqlConnection)
 {
     InitializeComponent();
     this.mySqlConnection = mySqlConnection;
     foreach (SQLCategorie sqlCategorie in SQLCategorie.GetAllSQLCategorie(mySqlConnection))
     {
         ColumnHeader columnHeader = new ColumnHeader();
         columnHeader.Text  = sqlCategorie.ToString();
         columnHeader.Name  = "columnHeader" + sqlCategorie.ToString();
         columnHeader.Width = 100;
         listViewInfo.Columns.Add(columnHeader);
     }
 }