public FormAjouterLesTarifsPourUneLiaisonEtUnePeriode(MySqlConnection mySqlConnection) { InitializeComponent(); this.mySqlConnection = mySqlConnection; int i = 0; foreach (SQLType sqlType in SQLType.GetAllSQLType(mySqlConnection)) { TextBox textBox = new TextBox(); textBox.Location = new System.Drawing.Point(145, 15 + 25 * i); textBox.Name = "textBox" + sqlType.ToString(); textBox.Size = new System.Drawing.Size(100, 20); textBox.TabIndex = 0; textBox.KeyPress += new KeyPressEventHandler(this.TextBoxTarif_KeyPress); dictionary_TextBox_SQLType.Add(textBox, sqlType); Label label = new Label(); label.AutoSize = true; label.Location = new System.Drawing.Point(5, 20 + 25 * i); label.Name = "label" + sqlType.ToString(); label.Size = new System.Drawing.Size(100, 15); label.TabIndex = 0; label.Text = sqlType.ToString() + " :"; groupBoxTarifParCategorie.Controls.Add(textBox); groupBoxTarifParCategorie.Controls.Add(label); i++; } }
public string GetLibelleType() { return(SQLType.GetSQLTypeByNotypeAndLettrecategorie(FormAtlantik.GetMySqlConnection(), notype, lettrecategorie).GetLibelle()); }