145
|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.Linq; |
|
4 |
using System.Text; |
|
5 |
|
|
6 |
using FingersDance.Control.TimeLine; |
|
7 |
|
|
8 |
namespace FingersDance.Actions |
|
9 |
{ |
|
10 |
public class ActionStartOrEndAnnotation : FingersDance.Actions.ActionBase |
|
11 |
{ |
|
12 |
|
194
|
13 |
private String _Text = ""; |
145
|
14 |
private UserControlTimeLine myTimeline; |
|
15 |
|
|
16 |
public ActionStartOrEndAnnotation() |
|
17 |
{ |
|
18 |
|
|
19 |
} |
|
20 |
|
194
|
21 |
public ActionStartOrEndAnnotation(String text) |
145
|
22 |
{ |
|
23 |
_Text = text; |
|
24 |
} |
|
25 |
|
194
|
26 |
public ActionStartOrEndAnnotation(Object[] param) |
145
|
27 |
{ |
194
|
28 |
myTimeline = (UserControlTimeLine)param[0]; |
|
29 |
_Text = (String)param[1]; |
145
|
30 |
} |
|
31 |
|
|
32 |
public void Execute() |
|
33 |
{ |
|
34 |
if (myTimeline != null) |
194
|
35 |
myTimeline.startOrEndAnnotation(_Text); |
145
|
36 |
} |
|
37 |
} |
|
38 |
} |
|
39 |
|