--- a/client/src/Iri.Modernisation.Data/Models/FactoryVideoLivre.cs Wed Jan 27 10:55:59 2010 +0100
+++ b/client/src/Iri.Modernisation.Data/Models/FactoryVideoLivre.cs Thu Feb 04 16:38:04 2010 +0100
@@ -65,9 +65,11 @@
temp.Add(new VideoChapterDescription(nb, XChapter.Attribute("name").Value, XChapter.Attribute("color").Value));
nb++;
}
+ int annotatinIndex=0;
foreach (XElement XAnnotation in _configDoc.Root.Element("PolemicTypes").Elements())
{
- temp_an.Add(new PolemicTypeDescription(XAnnotation.Attribute("name").Value, XAnnotation.Attribute("color").Value));
+ temp_an.Add(new PolemicTypeDescription(annotatinIndex, XAnnotation.Attribute("name").Value, XAnnotation.Attribute("color").Value));
+ annotatinIndex++;
}
VideoChapterDescriptions = temp.ToArray();
@@ -95,9 +97,11 @@
temp_vl .Add(new VideoChapterDescription(nb,XChapter.Attribute("name").Value, XChapter.Attribute("color").Value));
nb++;
}
+ int annotatinIndex = 0;
foreach (XElement XAnnotation in _configDoc.Root.Element("PolemicTypes").Elements())
{
- temp_an.Add(new PolemicTypeDescription(XAnnotation.Attribute("name").Value, XAnnotation.Attribute("color").Value));
+ temp_an.Add(new PolemicTypeDescription(annotatinIndex, XAnnotation.Attribute("name").Value, XAnnotation.Attribute("color").Value));
+ annotatinIndex++;
}
VideoChapterDescriptions = temp_vl .ToArray();
AnnotationDescriptions = temp_an.ToArray();