--- a/src/FingersDance.Control.Screen/UserControlScreen.xaml.cs Thu Nov 19 18:37:26 2009 +0100
+++ b/src/FingersDance.Control.Screen/UserControlScreen.xaml.cs Thu Nov 19 18:05:52 2009 +0100
@@ -13,6 +13,7 @@
using FingersDance.Control.SessionInput;
using FingersDance.ViewModels;
using FingersDance.Data;
+using FingersDance.Factory;
namespace FingersDance.Control.Screen
{
@@ -160,6 +161,7 @@
loadedProject.Description = loadedLdt.Root.Element("project").Attribute("abstract").Value;
loadedProject.Cuttings = new List<Cutting>();
XElement cuttingsParentNode = loadedLdt.Root.Element("annotations").Element("content");
+ DataDictionary Data = (new DataFactory()).Data;
foreach (XElement cuttingNode in cuttingsParentNode.Elements())
{
List<Annotation> la = new List<Annotation>();
@@ -174,7 +176,9 @@
Byte g = Convert.ToByte(colorString.Substring(4, 2), 16);
Byte b = Convert.ToByte(colorString.Substring(6, 2), 16);
Color c = Color.FromRgb(r, g, b);
- la.Add(new Annotation(aId, begin, dur, gt, c));
+ Annotation Annotation = new Annotation(aId, begin, dur, gt, c);
+ la.Add(Annotation);
+ Data.AddAnnotation(Annotation);
}
loadedProject.Cuttings.Add(new Cutting(cuttingNode.Attribute("id").Value,cuttingNode.Element("title").Value,la));
}