author | PAMPHILE Jonathan <pamphile@efrei.fr> |
Tue, 13 Oct 2009 19:33:13 +0200 | |
changeset 143 | 9f157d9c725b |
parent 75 | 99d003723474 |
permissions | -rw-r--r-- |
75
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
1 |
using System; |
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
2 |
using System.Collections.Generic; |
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
3 |
using System.Linq; |
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
4 |
using System.Text; |
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
5 |
|
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
6 |
using FingersDance.Control.TimeLine; |
143 | 7 |
using FingersDance.ViewModels; |
75
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
8 |
|
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
9 |
namespace FingersDance.Actions |
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
10 |
{ |
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
11 |
public class ActionAddAnnotation : FingersDance.Actions.ActionBase |
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
12 |
{ |
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
13 |
private string _Text = ""; |
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
14 |
private UserControlTimeLine myTimeline; |
143 | 15 |
private AnnotationViewModel myAnnotationViewModel; |
75
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
16 |
|
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
17 |
public ActionAddAnnotation() |
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
18 |
{ |
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
19 |
|
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
20 |
} |
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
21 |
|
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
22 |
public ActionAddAnnotation(string text) |
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
23 |
{ |
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
24 |
_Text = text; |
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
25 |
} |
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
26 |
|
143 | 27 |
public ActionAddAnnotation(List<Object> args) |
75
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
28 |
{ |
143 | 29 |
myTimeline = (UserControlTimeLine)args[0]; |
30 |
myAnnotationViewModel = (AnnotationViewModel)args[1]; |
|
75
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
31 |
} |
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
32 |
|
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
33 |
public void Execute() |
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
34 |
{ |
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
35 |
if (myTimeline != null) |
143 | 36 |
myTimeline.addAnnotation(myAnnotationViewModel); |
75
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
37 |
} |
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
38 |
} |
99d003723474
data binding second step. we can add annotation by clicking on menu buttons or timeline.
cavaliet
parents:
diff
changeset
|
39 |
} |