src/FingersDance.Data/Annotation.cs
changeset 150 569925b65604
parent 69 a4c44555f205
child 160 e940ca798fe3
--- a/src/FingersDance.Data/Annotation.cs	Wed Oct 14 14:06:04 2009 +0200
+++ b/src/FingersDance.Data/Annotation.cs	Wed Oct 14 17:08:43 2009 +0200
@@ -8,7 +8,7 @@
     public class AnnotationAddedEventArg : EventArgs
     {
         private float _tcBegin;
-        private float _dur;  
+        private float _dur;
         private String _gestureType;
 
         public float TcBegin
@@ -16,20 +16,21 @@
             get { return this._tcBegin; }
         }
         public float Dur
-        {  
+        {
             get { return this._dur; }
-        }  
+        }
         public String GestureType
-        {  
+        {
             get { return this._gestureType; }
         }
 
-        public AnnotationAddedEventArg(float tcBegin, float dur, String gestureType) {
+        public AnnotationAddedEventArg(float tcBegin, float dur, String gestureType)
+        {
 
             this._tcBegin = tcBegin;
             this._dur = dur;
             this._gestureType = gestureType;
-        
+
         }
 
     }
@@ -39,14 +40,16 @@
         private float _tcBegin;
         private float _dur;
         private string _gestureType;
+        private UInt32 _color;
 
         //public event EventHandler<AnnotationAddedEventArg> AnnotationAdded;
 
-        public Annotation(float tcBeginPar, float durPar, string gesturePar)
+        public Annotation(float tcBeginPar, float durPar, string gesturePar, UInt32 colorPar)
         {
             this._tcBegin = tcBeginPar;
             this._dur = durPar;
             this._gestureType = gesturePar;
+            this._color = colorPar;
 
             //AnnotationAdded(this, new AnnotationAddedEventArg(_tcBegin, _dur, _gestureType));
 
@@ -82,7 +85,17 @@
                 _gestureType = value;
             }
         }
-        
+        public UInt32 Color
+        {
+            get { return _color; }
+            set
+            {
+                if (value == _color)
+                    return;
+                _color = value;
+            }
+        }
+
     }
 
 }