4 using System.Text; |
4 using System.Text; |
5 using System.Windows.Media; |
5 using System.Windows.Media; |
6 |
6 |
7 namespace FingersDance.Data |
7 namespace FingersDance.Data |
8 { |
8 { |
9 public class AnnotationAddedEventArg : EventArgs |
|
10 { |
|
11 private float _tcBegin; |
|
12 private float _dur; |
|
13 private String _gestureType; |
|
14 |
|
15 public float TcBegin |
|
16 { |
|
17 get { return this._tcBegin; } |
|
18 } |
|
19 public float Dur |
|
20 { |
|
21 get { return this._dur; } |
|
22 } |
|
23 public String GestureType |
|
24 { |
|
25 get { return this._gestureType; } |
|
26 } |
|
27 |
|
28 public AnnotationAddedEventArg(float tcBegin, float dur, String gestureType) |
|
29 { |
|
30 |
|
31 this._tcBegin = tcBegin; |
|
32 this._dur = dur; |
|
33 this._gestureType = gestureType; |
|
34 |
|
35 } |
|
36 |
|
37 } |
|
38 |
|
39 public class Annotation |
9 public class Annotation |
40 { |
10 { |
41 private float _tcBegin; |
11 private float _tcBegin; |
42 private float _dur; |
12 private float _dur; |
43 private string _gestureType; |
13 private string _gestureType; |
44 private Color _color; |
14 private Color _color; |
45 |
15 |
46 //public event EventHandler<AnnotationAddedEventArg> AnnotationAdded; |
|
47 |
|
48 public Annotation(float tcBeginPar, float durPar, string gesturePar, Color colorPar) |
16 public Annotation(float tcBeginPar, float durPar, string gesturePar, Color colorPar) |
49 { |
17 { |
50 this._tcBegin = tcBeginPar; |
18 this._tcBegin = tcBeginPar; |
51 this._dur = durPar; |
19 this._dur = durPar; |
52 this._gestureType = gesturePar; |
20 this._gestureType = gesturePar; |
53 this._color = colorPar; |
21 this._color = colorPar; |
54 |
|
55 //AnnotationAdded(this, new AnnotationAddedEventArg(_tcBegin, _dur, _gestureType)); |
|
56 |
|
57 } |
22 } |
58 |
23 |
59 public float TcBegin |
24 public float TcBegin |
60 { |
25 { |
61 get { return _tcBegin; } |
26 get { return _tcBegin; } |