equal
deleted
inserted
replaced
10 public class AnnotationViewModel : ViewModelBase |
10 public class AnnotationViewModel : ViewModelBase |
11 { |
11 { |
12 private float _tcBegin; |
12 private float _tcBegin; |
13 private float _dur; |
13 private float _dur; |
14 private String _gestureType; |
14 private String _gestureType; |
|
15 private UInt32 _color; |
15 |
16 |
16 private float _marginLeft; |
17 private float _marginLeft; |
17 |
18 |
18 public AnnotationViewModel(Annotation a, float marginLeft) { |
19 public AnnotationViewModel(Annotation a, float marginLeft) |
|
20 { |
19 this._tcBegin = a.TcBegin; |
21 this._tcBegin = a.TcBegin; |
20 this._dur = a.Dur; |
22 this._dur = a.Dur; |
21 this._gestureType = a.GestureType; |
23 this._gestureType = a.GestureType; |
|
24 this._color = a.Color; |
22 this._marginLeft = marginLeft; |
25 this._marginLeft = marginLeft; |
23 } |
26 } |
24 |
27 |
25 public float TcBegin |
28 public float TcBegin |
26 { |
29 { |
27 get { return _tcBegin; } |
30 get { return _tcBegin; } |
28 set { |
31 set |
|
32 { |
29 if (value == _tcBegin || float.IsNaN(value)) |
33 if (value == _tcBegin || float.IsNaN(value)) |
30 return; |
34 return; |
31 _tcBegin = value; |
35 _tcBegin = value; |
32 base.OnPropertyChanged("TcBegin"); |
36 base.OnPropertyChanged("TcBegin"); |
33 } |
37 } |
52 return; |
56 return; |
53 _gestureType = value; |
57 _gestureType = value; |
54 base.OnPropertyChanged("GestureType"); |
58 base.OnPropertyChanged("GestureType"); |
55 } |
59 } |
56 } |
60 } |
|
61 public UInt32 Color |
|
62 { |
|
63 get { return _color; } |
|
64 set |
|
65 { |
|
66 if (value == _color) |
|
67 return; |
|
68 _color = value; |
|
69 } |
|
70 } |
57 public float MarginLeft |
71 public float MarginLeft |
58 { |
72 { |
59 get { return _marginLeft; } |
73 get { return _marginLeft; } |
60 set |
74 set |
61 { |
75 { |