author | PAMPHILE Jonathan <pamphile@efrei.fr> |
Tue, 13 Oct 2009 19:33:13 +0200 | |
changeset 143 | 9f157d9c725b |
parent 73 | bda95242e600 |
child 148 | c379899e9c94 |
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; |
143 | 17 |
public User User = new User(); |
73 | 18 |
|
61 | 19 |
public UserControlSessionInput() |
20 |
{ |
|
21 |
this.InitializeComponent(); |
|
143 | 22 |
ST_Date.Text = DateTime.Now.Day.ToString() + "/" + DateTime.Now.Month.ToString() + "/" + DateTime.Now.Year.ToString(); |
61 | 23 |
} |
72
f1ca0958c992
Travail sur le control List Video et comunication entre ListVideo et FingersDance
sarias
parents:
61
diff
changeset
|
24 |
|
73 | 25 |
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
|
26 |
{ |
143 | 27 |
if (!ST_Alias.Text.Equals("") && !ST_Date.Text.Equals("") && !ST_Email.Text.Equals("") && !ST_Name.Text.Equals("")) |
28 |
{ |
|
29 |
User = new User(ST_Name.Text, ST_Email.Text, ST_Alias.Text); |
|
30 |
if (EH_SurfaceButtonSubmit_ContactDown != null) |
|
31 |
EH_SurfaceButtonSubmit_ContactDown(this, new EventArgs()); |
|
32 |
} |
|
72
f1ca0958c992
Travail sur le control List Video et comunication entre ListVideo et FingersDance
sarias
parents:
61
diff
changeset
|
33 |
} |
73 | 34 |
|
35 |
private void SurfaceButtonSubmit_Click(object sender, RoutedEventArgs e) |
|
36 |
{ |
|
143 | 37 |
if (!ST_Alias.Text.Equals("") && !ST_Date.Text.Equals("") && !ST_Email.Text.Equals("") && !ST_Name.Text.Equals("")) |
38 |
{ |
|
39 |
User = new User(ST_Name.Text, ST_Email.Text, ST_Alias.Text); |
|
40 |
if (EH_SurfaceButtonSubmit_ContactDown != null) |
|
41 |
EH_SurfaceButtonSubmit_ContactDown(this, new EventArgs()); |
|
42 |
} |
|
73 | 43 |
} |
44 |
||
61 | 45 |
} |
46 |
} |