equal
deleted
inserted
replaced
54 Edits = new List<LDTEditing>(); |
54 Edits = new List<LDTEditing>(); |
55 } |
55 } |
56 public void Load(String _path) |
56 public void Load(String _path) |
57 { |
57 { |
58 Path = _path; |
58 Path = _path; |
59 Load(); |
59 // Load(); |
60 } |
60 } |
61 public void Load() |
61 public void Load(XDocument xdoc) |
62 { |
62 { |
63 if(Path == String.Empty) |
63 /*if(Path == String.Empty) |
64 { |
64 { |
65 throw new Exception("Load Path Needed"); |
65 throw new Exception("Load Path Needed"); |
66 } |
66 } |
67 XDocument xdoc = XDocument.Load(Path); |
67 = XDocument.Load(Path);*/ |
68 |
68 |
69 Project = new LDTProject(xdoc.Root.Element("project")); |
69 Project = new LDTProject(xdoc.Root.Element("project")); |
70 foreach (XElement Elem in xdoc.Root.Element("medias").Elements()) |
70 foreach (XElement Elem in xdoc.Root.Element("medias").Elements()) |
71 { |
71 { |
72 Medias.Add(new LDTMedia(Elem)); |
72 Medias.Add(new LDTMedia(Elem)); |