Exemplo n.º 1
0
        // Ajouter ou retirer l'index de photo
        private void AddRemove_SlideShow(int photoId)
        {
            int index = SlideShowList.IndexOf(photoId);

            if (index == -1)
            {
                SlideShowList.Add(photoId);
            }
            else
            {
                SlideShowList.RemoveAt(index);
            }
        }