src/FingersDance.Data/Annotation.cs
changeset 160 e940ca798fe3
parent 150 569925b65604
child 182 25b49d4f1635
equal deleted inserted replaced
157:0fd2b41ab402 160:e940ca798fe3
     1 using System;
     1 using System;
     2 using System.Collections.Generic;
     2 using System.Collections.Generic;
     3 using System.Linq;
     3 using System.Linq;
     4 using System.Text;
     4 using System.Text;
       
     5 using System.Windows.Media;
     5 
     6 
     6 namespace FingersDance.Data
     7 namespace FingersDance.Data
     7 {
     8 {
     8     public class AnnotationAddedEventArg : EventArgs
     9     public class AnnotationAddedEventArg : EventArgs
     9     {
    10     {
    38     public class Annotation
    39     public class Annotation
    39     {
    40     {
    40         private float _tcBegin;
    41         private float _tcBegin;
    41         private float _dur;
    42         private float _dur;
    42         private string _gestureType;
    43         private string _gestureType;
    43         private UInt32 _color;
    44         private Color _color;
    44 
    45 
    45         //public event EventHandler<AnnotationAddedEventArg> AnnotationAdded;
    46         //public event EventHandler<AnnotationAddedEventArg> AnnotationAdded;
    46 
    47 
    47         public Annotation(float tcBeginPar, float durPar, string gesturePar, UInt32 colorPar)
    48         public Annotation(float tcBeginPar, float durPar, string gesturePar, Color colorPar)
    48         {
    49         {
    49             this._tcBegin = tcBeginPar;
    50             this._tcBegin = tcBeginPar;
    50             this._dur = durPar;
    51             this._dur = durPar;
    51             this._gestureType = gesturePar;
    52             this._gestureType = gesturePar;
    52             this._color = colorPar;
    53             this._color = colorPar;
    83                 if (value == _gestureType || String.IsNullOrEmpty(value))
    84                 if (value == _gestureType || String.IsNullOrEmpty(value))
    84                     return;
    85                     return;
    85                 _gestureType = value;
    86                 _gestureType = value;
    86             }
    87             }
    87         }
    88         }
    88         public UInt32 Color
    89         public Color Color
    89         {
    90         {
    90             get { return _color; }
    91             get { return _color; }
    91             set
    92             set
    92             {
    93             {
    93                 if (value == _color)
    94                 if (value == _color)