diff -r 44a2dc869e28 -r f292db96b050 client/src/Iri.Modernisation.Data/Models/VideoBook.cs --- 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 @@ /// 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); + + } }