client/src/Iri.Modernisation.Data/Models/FactoryVideoLivre.cs
changeset 39 0f2bde8fdfeb
parent 38 bd33267300aa
--- a/client/src/Iri.Modernisation.Data/Models/FactoryVideoLivre.cs	Thu Feb 04 16:38:04 2010 +0100
+++ b/client/src/Iri.Modernisation.Data/Models/FactoryVideoLivre.cs	Tue Feb 09 15:30:46 2010 +0100
@@ -14,12 +14,26 @@
 {
     public static class FactoryVideoLivre
     {
+       
          public static WebClient xmlClient = new WebClient();
          private static XDocument _configDoc; 
          public static VideoChapterDescription[] VideoChapterDescriptions {get;private set;}
+         public static Dictionary<String, PolemicTypeDescription> DictionaryAnnotationDescriptions
+         {
+             get
+             {
+                 Dictionary<String, PolemicTypeDescription> returnDic = new Dictionary<string, PolemicTypeDescription>();
+                 foreach(PolemicTypeDescription Ptd in AnnotationDescriptions)
+                 {
+                     returnDic.Add(Ptd.Title, Ptd);
+                 }
+                 return returnDic;
+             }
+         }
          public static PolemicTypeDescription[] AnnotationDescriptions { get; private set; }
          public static String VideoBookListPath;
          public static String ProductionVideoPath;
+         public static String UpdateBookService;
          public static int NumberOfChapters
          {
              get
@@ -60,6 +74,7 @@
                 int nb = 0;
                 VideoBookListPath = _configDoc.Root.Attribute("VideoBookList").Value;
                 ProductionVideoPath = _configDoc.Root.Attribute("ProductionVideo").Value;
+                UpdateBookService = _configDoc.Root.Attribute("UpdateBookService").Value;
                 foreach (XElement XChapter in _configDoc.Root.Element("VideoBook").Elements())
                 {
                     temp.Add(new VideoChapterDescription(nb, XChapter.Attribute("name").Value, XChapter.Attribute("color").Value));