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