private void btnSearch_Click(object sender, EventArgs e) { IGestionEmployes gestionEmployes = GestionEmployesBuilderClassFactory.getInterface(); if (comboBoxAttribut.Text == "Code") { dataGridVilles.DataSource = gestionEmployes.findVillesByCode(textBoxSearch.Text); } else if (comboBoxAttribut.Text == "Description") { dataGridVilles.DataSource = gestionEmployes.findVillesByDescription(textBoxSearch.Text); } }