src/FingersDance.ViewModel/AnnotationViewModel.cs
changeset 160 e940ca798fe3
parent 150 569925b65604
child 167 206f07a8d887
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 using FingersDance.Data;
     7 using FingersDance.Data;
     7 
     8 
     8 namespace FingersDance.ViewModels
     9 namespace FingersDance.ViewModels
     9 {
    10 {
    10     public class AnnotationViewModel : ViewModelBase
    11     public class AnnotationViewModel : ViewModelBase
    11     {
    12     {
    12         private float _tcBegin;
    13         private float _tcBegin;
    13         private float _dur;
    14         private float _dur;
    14         private String _gestureType;
    15         private String _gestureType;
    15         private UInt32 _color;
    16         private Color _color;
    16 
    17 
    17         private float _marginLeft;
    18         private float _marginLeft;
    18 
    19 
    19         public AnnotationViewModel(Annotation a, float marginLeft)
    20         public AnnotationViewModel(Annotation a, float marginLeft)
    20         {
    21         {
    56                     return;
    57                     return;
    57                 _gestureType = value;
    58                 _gestureType = value;
    58                 base.OnPropertyChanged("GestureType");
    59                 base.OnPropertyChanged("GestureType");
    59             }
    60             }
    60         }
    61         }
    61         public UInt32 Color
    62         public Color Color
    62         {
    63         {
    63             get { return _color; }
    64             get { return _color; }
    64             set
    65             set
    65             {
    66             {
    66                 if (value == _color)
    67                 if (value == _color)