Exemple #1
0
        //Gestion des recherches et tags


        public void EffectuerRecherche()
        {
            if (textBoxRecherche.Text.Trim() == "" || comboBoxAlbums.Text == "")
            {
                return;
            }

            buttonImportPhoto.Enabled = false;
            buttonDelPhoto.Enabled    = false;
            buttonDelAlbum.Enabled    = false;

            List <string> ListeMotsCles = textBoxRecherche.Text.Split(',').ToList();

            Outils.Instance.TrimList(ListeMotsCles);

            donnees.ChercherResultats(ListeMotsCles, comboBoxAlbums.Text, comboBoxZone.Text);

            //Deselectionne Album
            listAlbums.SelectedIndex = -1;

            //Vide la liste de photos
            DisposeAllPhotosForm();

            //Ajoute les résultats de recherche
            foreach (string[] s in donnees.listeResultats)
            {
                AjoutDansListePhotosForm(donnees.path_folder + "//" + s[0] + "//" + s[1], false);
            }
        }