author | PAMPHILE Jonathan <pamphile@efrei.fr> |
Wed, 14 Oct 2009 14:02:31 +0200 | |
changeset 148 | c379899e9c94 |
parent 143 | 9f157d9c725b |
child 156 | e16c8c913c65 |
permissions | -rw-r--r-- |
61 | 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; |
|
143 | 10 |
using FingersDance.Data; |
61 | 11 |
|
12 |
namespace FingersDance.Control.SessionInput |
|
13 |
{ |
|
14 |
public partial class UserControlSessionInput |
|
15 |
{ |
|
73 | 16 |
public event EventHandler EH_SurfaceButtonSubmit_ContactDown; |
148 | 17 |
public string Name = ""; |
18 |
public string Email = ""; |
|
19 |
public string Alias = ""; |
|
20 |
public string Description = ""; |
|
73 | 21 |
|
61 | 22 |
public UserControlSessionInput() |
23 |
{ |
|
24 |
this.InitializeComponent(); |
|
143 | 25 |
ST_Date.Text = DateTime.Now.Day.ToString() + "/" + DateTime.Now.Month.ToString() + "/" + DateTime.Now.Year.ToString(); |
148 | 26 |
} |
27 |
||
28 |
#region Actions |
|
72
f1ca0958c992
Travail sur le control List Video et comunication entre ListVideo et FingersDance
sarias
parents:
61
diff
changeset
|
29 |
|
73 | 30 |
private void SurfaceButtonSubmit_ContactDown(object sender, Microsoft.Surface.Presentation.ContactEventArgs e) |
72
f1ca0958c992
Travail sur le control List Video et comunication entre ListVideo et FingersDance
sarias
parents:
61
diff
changeset
|
31 |
{ |
143 | 32 |
if (!ST_Alias.Text.Equals("") && !ST_Date.Text.Equals("") && !ST_Email.Text.Equals("") && !ST_Name.Text.Equals("")) |
33 |
{ |
|
148 | 34 |
Name= ST_Name.Text; |
35 |
Email= ST_Email.Text; |
|
36 |
Alias = ST_Alias.Text; |
|
37 |
Description = ST_Desc.Text; |
|
143 | 38 |
if (EH_SurfaceButtonSubmit_ContactDown != null) |
39 |
EH_SurfaceButtonSubmit_ContactDown(this, new EventArgs()); |
|
40 |
} |
|
72
f1ca0958c992
Travail sur le control List Video et comunication entre ListVideo et FingersDance
sarias
parents:
61
diff
changeset
|
41 |
} |
73 | 42 |
|
43 |
private void SurfaceButtonSubmit_Click(object sender, RoutedEventArgs e) |
|
44 |
{ |
|
143 | 45 |
if (!ST_Alias.Text.Equals("") && !ST_Date.Text.Equals("") && !ST_Email.Text.Equals("") && !ST_Name.Text.Equals("")) |
46 |
{ |
|
148 | 47 |
Name = ST_Name.Text; |
48 |
Email = ST_Email.Text; |
|
49 |
Alias = ST_Alias.Text; |
|
50 |
Description = ST_Desc.Text; |
|
143 | 51 |
if (EH_SurfaceButtonSubmit_ContactDown != null) |
52 |
EH_SurfaceButtonSubmit_ContactDown(this, new EventArgs()); |
|
53 |
} |
|
73 | 54 |
} |
55 |
||
148 | 56 |
#endregion |
57 |
||
61 | 58 |
} |
59 |
} |