src/FingersDance.Actions/ActionAddAnnotation.cs
changeset 75 99d003723474
child 135 84b3bf5ee3d2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Actions/ActionAddAnnotation.cs	Thu Sep 17 17:25:05 2009 +0200
@@ -0,0 +1,36 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+using FingersDance.Control.TimeLine;
+
+namespace FingersDance.Actions
+{
+    public class ActionAddAnnotation : FingersDance.Actions.ActionBase
+    {
+        private string _Text = "";
+        private UserControlTimeLine myTimeline;
+
+        public ActionAddAnnotation()
+        {
+            
+        }
+
+        public ActionAddAnnotation(string text)
+        {
+            _Text = text;
+        }
+
+        public ActionAddAnnotation(UserControlTimeLine uct)
+        {
+            myTimeline = uct;
+        }
+
+        public void Execute()
+        {
+            if (myTimeline != null)
+                myTimeline.addAnnotation();
+        }
+    }
+}