コード例 #1
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            IGestionEmployes
                gestionEmployes = GestionEmployesBuilderClassFactory.getInterface();

            if (comboBoxAttribut.Text == "Code")
            {
                dataGridRole.DataSource = gestionEmployes.findRolesByCode(textBoxSearch.Text);
            }
            else if (comboBoxAttribut.Text == "Description")
            {
                dataGridRole.DataSource = gestionEmployes.findRolesByDescription(textBoxSearch.Text);
            }
        }