103
|
1 |
using System; |
|
2 |
using System.IO; |
|
3 |
using System.Net; |
|
4 |
using System.Windows; |
|
5 |
using System.Windows.Controls; |
|
6 |
using System.Windows.Data; |
|
7 |
using System.Windows.Media; |
|
8 |
using System.Windows.Media.Animation; |
|
9 |
using System.Windows.Navigation; |
|
10 |
|
|
11 |
namespace FingersDance.Control.Close |
|
12 |
{ |
|
13 |
public partial class UserControlClose |
|
14 |
{ |
131
|
15 |
public event EventHandler EH_SurfaceButtonClose_ContactDown; |
|
16 |
public bool close; |
|
17 |
public int Id = 0; |
|
18 |
|
|
19 |
public UserControlClose(int closeid) |
103
|
20 |
{ |
131
|
21 |
Id = closeid; |
103
|
22 |
this.InitializeComponent(); |
|
23 |
|
|
24 |
// Insert code required on object creation below this point. |
|
25 |
} |
131
|
26 |
|
|
27 |
private void SurfaceButtonOK_ContactDown(object sender, Microsoft.Surface.Presentation.ContactEventArgs e) |
|
28 |
{ |
|
29 |
if (EH_SurfaceButtonClose_ContactDown != null) |
|
30 |
{ |
|
31 |
close = true; |
|
32 |
EH_SurfaceButtonClose_ContactDown(this, new EventArgs()); |
|
33 |
} |
|
34 |
} |
|
35 |
|
|
36 |
private void SurfaceButtonNO_ContactDown(object sender, Microsoft.Surface.Presentation.ContactEventArgs e) |
|
37 |
{ |
|
38 |
if (EH_SurfaceButtonClose_ContactDown != null) |
|
39 |
{ |
|
40 |
close = false; |
|
41 |
EH_SurfaceButtonClose_ContactDown(this, new EventArgs()); |
|
42 |
} |
|
43 |
} |
|
44 |
|
|
45 |
private void SurfaceButtonNO_Click(object sender, RoutedEventArgs e) |
|
46 |
{ |
|
47 |
if (EH_SurfaceButtonClose_ContactDown != null) |
|
48 |
{ |
|
49 |
close = false; |
|
50 |
EH_SurfaceButtonClose_ContactDown(this, new EventArgs()); |
|
51 |
} |
|
52 |
} |
|
53 |
|
|
54 |
private void SurfaceButtonOK_Click(object sender, RoutedEventArgs e) |
|
55 |
{ |
|
56 |
if (EH_SurfaceButtonClose_ContactDown != null) |
|
57 |
{ |
|
58 |
close = true; |
|
59 |
EH_SurfaceButtonClose_ContactDown(this, new EventArgs()); |
|
60 |
} |
|
61 |
} |
103
|
62 |
} |
|
63 |
} |