All pastes #912029 Raw Edit

Someone

public text v1 · immutable
·published 2008-02-21 02:06 UTC
rendered paste body
 // Détection si il y a plusieurs Genres sélectionnés
            if (listGenres.SelectedItems.Count > 1)
            {
                // Définition du premier argument Genre
                lesGenres = "'" + listGenres.SelectedItems[0].ToString() + "'";

                MessageBox.Show("PLOP");

                //MessageBox.Show("PLOP" + listGenres.SelectedItems[0].ToString());

                // Parcours des autres arguments OR Genre = 'plop' OR Genre = 'plop2' ...
                for (int i = 1; i <= listPlaylists.SelectedItems.Count; i++)
                {
                    lesGenres = lesGenres + " OR Genre = '" + listGenres.SelectedItems[i].ToString() + "'";
                }

                MessageBox.Show(lesGenres);
            }