src/FingersDance.Control.Screen/UserControlScreen.xaml.cs
changeset 225 b60e13ed75c8
parent 223 90d2be5c3d39
child 229 05aba5def1fc
--- a/src/FingersDance.Control.Screen/UserControlScreen.xaml.cs	Tue Nov 24 07:50:17 2009 +0100
+++ b/src/FingersDance.Control.Screen/UserControlScreen.xaml.cs	Tue Nov 24 11:35:07 2009 +0100
@@ -173,13 +173,15 @@
                             String aId = annotNode.Attribute("id").Value;
                             float begin = (float)annotNode.Attribute("begin");
                             float dur = (float)annotNode.Attribute("dur");
-                            String gt = annotNode.Element("gestureType").Value;
+                            String[] gt = annotNode.Element("gestureType").Value.Split(new Char[] { ',' });
+                            List<String> gtList = new List<String>();
+                            gtList.AddRange(gt);
                             String colorString = annotNode.Attribute("color").Value; // is type 0xRRGGBB
                             Byte r = Convert.ToByte(colorString.Substring(2, 2), 16);
                             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);
-                            Annotation Annotation = new Annotation(aId, begin, dur, gt, c);
+                            Annotation Annotation = new Annotation(aId, begin, dur, gtList, c);
                             la.Add(Annotation);
                             Data.AddAnnotation(Annotation);
                         }