src/FingersDance.Data/Annotation.cs
changeset 192 11083c390ce4
parent 182 25b49d4f1635
child 225 b60e13ed75c8
equal deleted inserted replaced
191:8a25a85f2656 192:11083c390ce4
     6 
     6 
     7 namespace FingersDance.Data
     7 namespace FingersDance.Data
     8 {
     8 {
     9     public class Annotation
     9     public class Annotation
    10     {
    10     {
       
    11         private String _id;
    11         private float _tcBegin;
    12         private float _tcBegin;
    12         private float _dur;
    13         private float _dur;
    13         private string _gestureType;
    14         private String _gestureType;
    14         private Color _color;
    15         private Color _color;
    15 
    16 
    16         public Annotation(float tcBeginPar, float durPar, string gesturePar, Color colorPar)
    17         public Annotation(String idPar, float tcBeginPar, float durPar, String gesturePar, Color colorPar)
    17         {
    18         {
       
    19             this._id = idPar;
    18             this._tcBegin = tcBeginPar;
    20             this._tcBegin = tcBeginPar;
    19             this._dur = durPar;
    21             this._dur = durPar;
    20             this._gestureType = gesturePar;
    22             this._gestureType = gesturePar;
    21             this._color = colorPar;
    23             this._color = colorPar;
    22         }
    24         }
    23 
    25 
       
    26         public String Id
       
    27         {
       
    28             get { return _id; }
       
    29             set
       
    30             {
       
    31                 if (value == _id || String.IsNullOrEmpty(value))
       
    32                     return;
       
    33                 _id = value;
       
    34             }
       
    35         }
    24         public float TcBegin
    36         public float TcBegin
    25         {
    37         {
    26             get { return _tcBegin; }
    38             get { return _tcBegin; }
    27             set
    39             set
    28             {
    40             {