Exemplo n.º 1
0
        private void btnReset_Click(object sender, EventArgs e)
        {
            IGestionEmployes
                gestionEmployes = GestionEmployesBuilderClassFactory.getInterface();

            textBoxSearch.Text          = "";
            dataGridAdresses.DataSource = gestionEmployes.findAllAdresses();
        }
Exemplo n.º 2
0
        public FormGestionAdresses()
        {
            InitializeComponent();
            IGestionEmployes
                gestionEmployes = GestionEmployesBuilderClassFactory.getInterface();

            dataGridAdresses.DataSource = gestionEmployes.findAllAdresses();

            List <Ville> listeVilles = gestionEmployes.findAllVilles();

            foreach (Ville ville in listeVilles)
            {
                ComboboxItem item = new ComboboxItem();
                item.Value = ville.IdVille;
                item.Text  = ville.CodeVille;

                comboBoxVille.Items.Add(item);
            }
        }