src/FingersDance.Control.TimeLine/UserControlTimeLine.xaml.cs
changeset 75 99d003723474
parent 74 7ce946833eae
child 99 5a49507c8159
--- a/src/FingersDance.Control.TimeLine/UserControlTimeLine.xaml.cs	Thu Sep 17 13:06:22 2009 +0200
+++ b/src/FingersDance.Control.TimeLine/UserControlTimeLine.xaml.cs	Thu Sep 17 17:25:05 2009 +0200
@@ -188,13 +188,16 @@
 
         private void slider_ContactTapGesture(object sender, Microsoft.Surface.Presentation.ContactEventArgs e)
         {
+            addAnnotation();
+        }
 
-            cutvm.AnnotList.Add(new AnnotationViewModel(new Annotation(180+(numAnnot-6)*20 - ((numAnnot-1) * annotWidth), 10, numAnnot.ToString())));
+        public void addAnnotation()
+        {
+            cutvm.AnnotList.Add(new AnnotationViewModel(new Annotation(180 + (numAnnot - 6) * 20 - ((numAnnot - 1) * annotWidth), 10, numAnnot.ToString())));
             tv.DataContext = null;
             tv.DataContext = cutvm;
             numAnnot++;
         }
-        
 
 	}
 }
\ No newline at end of file