client/src/Iri.Modernisation.Data/Models/VideoBook.cs
changeset 27 f292db96b050
parent 18 66911d0f0eb6
child 30 644e3cd48034
--- a/client/src/Iri.Modernisation.Data/Models/VideoBook.cs	Tue Dec 22 16:22:22 2009 +0100
+++ b/client/src/Iri.Modernisation.Data/Models/VideoBook.cs	Mon Jan 04 10:29:39 2010 +0100
@@ -46,11 +46,15 @@
         /// </summary>
         public VideoBook()
         {
-            Chapters = new VideoChapter[4];
-            Chapters[0] = new VideoChapter(this, "Modernisation", VideoChapterType.Modernisation);
-            Chapters[1] = new VideoChapter(this, "Modernité", VideoChapterType.Modernite);
-            Chapters[2] = new VideoChapter(this, "Post-Modernité",VideoChapterType.Postmodernite);
-            Chapters[3] = new VideoChapter(this, "Ouverture",VideoChapterType.Ouverture);
+            Chapters = new VideoChapter[FactoryVideoLivre.VideoChapterDescriptions.Length];
+            for (int nbChapitre = 0; nbChapitre < FactoryVideoLivre.VideoChapterDescriptions.Length; nbChapitre++)
+            {
+                Chapters[nbChapitre] = new VideoChapter(this,
+                                                         FactoryVideoLivre.VideoChapterDescriptions[nbChapitre].Id,
+                                                         FactoryVideoLivre.VideoChapterDescriptions[nbChapitre].Title,
+                                                         FactoryVideoLivre.VideoChapterDescriptions[nbChapitre].Color);
+
+            }
          
         }