55
|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.Linq; |
|
4 |
using System.Text; |
|
5 |
|
|
6 |
namespace FingersDance.ViewModel |
|
7 |
{ |
|
8 |
class AnnotationViewModel : ViewModelBase |
|
9 |
{ |
|
10 |
private float _tcBegin; |
|
11 |
private float _dur; |
|
12 |
private String _gestureType; |
|
13 |
|
|
14 |
public float tcBegin |
|
15 |
{ |
|
16 |
get { return _tcBegin; } |
|
17 |
set { |
|
18 |
if (value == _tcBegin || float.IsNaN(value)) |
|
19 |
return; |
|
20 |
_tcBegin = value; |
|
21 |
base.OnPropertyChanged("TcBegin"); |
|
22 |
} |
|
23 |
} |
|
24 |
public float dur |
|
25 |
{ |
|
26 |
get { return _dur; } |
|
27 |
set |
|
28 |
{ |
|
29 |
if (value == _dur || float.IsNaN(value)) |
|
30 |
return; |
|
31 |
_dur = value; |
|
32 |
base.OnPropertyChanged("Dur"); |
|
33 |
} |
|
34 |
} |
|
35 |
public String gestureType |
|
36 |
{ |
|
37 |
get { return _gestureType; } |
|
38 |
set |
|
39 |
{ |
|
40 |
if (value == _gestureType || String.IsNullOrEmpty(value)) |
|
41 |
return; |
|
42 |
_gestureType = value; |
|
43 |
base.OnPropertyChanged("GestureType"); |
|
44 |
} |
|
45 |
} |
|
46 |
|
|
47 |
} |
|
48 |
} |