equal
deleted
inserted
replaced
8 using System.Windows.Media; |
8 using System.Windows.Media; |
9 using System.Windows.Media.Animation; |
9 using System.Windows.Media.Animation; |
10 using System.Windows.Shapes; |
10 using System.Windows.Shapes; |
11 using System.Collections.Generic; |
11 using System.Collections.Generic; |
12 using System.Xml.Linq; |
12 using System.Xml.Linq; |
|
13 using Iri.Modernisation.Data.Models; |
13 namespace Iri.Modernisation.Data.LDTClass |
14 namespace Iri.Modernisation.Data.LDTClass |
14 { |
15 { |
15 /// <summary> |
16 /// <summary> |
16 /// Fichier .ldt |
17 /// Fichier .ldt |
17 /// </summary> |
18 /// </summary> |
44 /// Elements |
45 /// Elements |
45 /// </summary> |
46 /// </summary> |
46 public List<LDTEditing> Edits { get; set; } |
47 public List<LDTEditing> Edits { get; set; } |
47 |
48 |
48 public List<LDTRelation> Relations { get; set; } |
49 public List<LDTRelation> Relations { get; set; } |
49 |
50 |
50 public LDTFile() |
51 public LDTFile() |
51 { |
52 { |
52 Project = new LDTProject(); |
53 Project = new LDTProject(); |
53 Medias = new List<LDTMedia>(); |
54 Medias = new List<LDTMedia>(); |
54 Annotations = new List<LDTAnnotationsContent>(); |
55 Annotations = new List<LDTAnnotationsContent>(); |
164 XMedias.Add(media.XML); |
165 XMedias.Add(media.XML); |
165 } |
166 } |
166 temp.Add(XMedias); |
167 temp.Add(XMedias); |
167 |
168 |
168 // |
169 // |
169 XElement XAnnotations = new XElement("annotation"); |
170 XElement XAnnotations = new XElement("annotations"); |
170 foreach (LDTAnnotationsContent annotation in Annotations) |
171 foreach (LDTAnnotationsContent annotation in Annotations) |
171 { |
172 { |
172 XAnnotations.Add(annotation.XML); |
173 XAnnotations.Add(annotation.XML); |
173 } |
174 } |
174 temp.Add(XAnnotations); |
175 temp.Add(XAnnotations); |