author | cavaliet |
Fri, 20 Nov 2009 17:14:52 +0100 | |
changeset 216 | 45d2dff788f2 |
parent 208 | 0699cab5cbb3 |
permissions | -rw-r--r-- |
208
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
1 |
using System; |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
2 |
using System.Collections.Generic; |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
3 |
using System.Linq; |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
4 |
using System.Text; |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
5 |
using System.Windows; |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
6 |
using System.Windows.Controls; |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
7 |
using System.Windows.Data; |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
8 |
using System.Windows.Documents; |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
9 |
using System.Windows.Input; |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
10 |
using System.Windows.Media; |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
11 |
using System.Windows.Media.Imaging; |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
12 |
using System.Windows.Navigation; |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
13 |
using System.Windows.Shapes; |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
14 |
|
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
15 |
namespace FingersDance.Control.SessionInput |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
16 |
{ |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
17 |
|
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
18 |
/// <summary> |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
19 |
/// Interaction logic for UserControlAnnotationOrSearch.xaml |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
20 |
/// </summary> |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
21 |
public partial class UserControlAnnotationOrSearch : UserControl |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
22 |
{ |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
23 |
public event EventHandler<AnnotationOrSearchEventArg> ModeChosen; |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
24 |
|
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
25 |
public UserControlAnnotationOrSearch() |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
26 |
{ |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
27 |
InitializeComponent(); |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
28 |
} |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
29 |
|
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
30 |
private void annotBtn_Click(object sender, RoutedEventArgs e) |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
31 |
{ |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
32 |
ModeChosen(this, new AnnotationOrSearchEventArg("Annotation")); |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
33 |
} |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
34 |
|
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
35 |
private void annotBtn_ContactDown(object sender, Microsoft.Surface.Presentation.ContactEventArgs e) |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
36 |
{ |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
37 |
ModeChosen(this, new AnnotationOrSearchEventArg("Annotation")); |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
38 |
} |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
39 |
|
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
40 |
private void searchBtn_Click(object sender, RoutedEventArgs e) |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
41 |
{ |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
42 |
ModeChosen(this, new AnnotationOrSearchEventArg("Search")); |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
43 |
} |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
44 |
|
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
45 |
private void searchBtn_ContactDown(object sender, Microsoft.Surface.Presentation.ContactEventArgs e) |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
46 |
{ |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
47 |
ModeChosen(this, new AnnotationOrSearchEventArg("Search")); |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
48 |
} |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
49 |
} |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
50 |
|
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
51 |
|
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
52 |
/// <summary> |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
53 |
/// AnnotationOrSearchEventArg |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
54 |
/// </summary> |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
55 |
public class AnnotationOrSearchEventArg : EventArgs |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
56 |
{ |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
57 |
public String ChosenMode |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
58 |
{ |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
59 |
get; |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
60 |
set; |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
61 |
} |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
62 |
|
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
63 |
public AnnotationOrSearchEventArg(String chosenMode) |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
64 |
{ |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
65 |
|
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
66 |
ChosenMode = chosenMode; |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
67 |
|
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
68 |
} |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
69 |
} |
0699cab5cbb3
first step of search mode : add choice panel and integrate the annotation mode.
cavaliet
parents:
diff
changeset
|
70 |
} |