author | cavaliet |
Wed, 28 Oct 2009 17:07:27 +0100 | |
changeset 182 | 25b49d4f1635 |
parent 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; |
156
e16c8c913c65
Color Factory et application des couleurs au pivot
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
148
diff
changeset
|
17 |
public string SessionName = ""; |
148 | 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 |
{ |
156
e16c8c913c65
Color Factory et application des couleurs au pivot
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
148
diff
changeset
|
32 |
//if (!ST_Alias.Text.Equals("") && !ST_Date.Text.Equals("") && !ST_Email.Text.Equals("") && !ST_Name.Text.Equals("")) |
e16c8c913c65
Color Factory et application des couleurs au pivot
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
148
diff
changeset
|
33 |
if (!ST_Name.Text.Equals("")) |
143 | 34 |
{ |
156
e16c8c913c65
Color Factory et application des couleurs au pivot
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
148
diff
changeset
|
35 |
SessionName = ST_Name.Text; |
148 | 36 |
Email= ST_Email.Text; |
37 |
Alias = ST_Alias.Text; |
|
38 |
Description = ST_Desc.Text; |
|
143 | 39 |
if (EH_SurfaceButtonSubmit_ContactDown != null) |
40 |
EH_SurfaceButtonSubmit_ContactDown(this, new EventArgs()); |
|
41 |
} |
|
72
f1ca0958c992
Travail sur le control List Video et comunication entre ListVideo et FingersDance
sarias
parents:
61
diff
changeset
|
42 |
} |
73 | 43 |
|
44 |
private void SurfaceButtonSubmit_Click(object sender, RoutedEventArgs e) |
|
45 |
{ |
|
156
e16c8c913c65
Color Factory et application des couleurs au pivot
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
148
diff
changeset
|
46 |
//if (!ST_Alias.Text.Equals("") && !ST_Date.Text.Equals("") && !ST_Email.Text.Equals("") && !ST_Name.Text.Equals("")) |
e16c8c913c65
Color Factory et application des couleurs au pivot
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
148
diff
changeset
|
47 |
if (!ST_Name.Text.Equals("")) |
143 | 48 |
{ |
156
e16c8c913c65
Color Factory et application des couleurs au pivot
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
148
diff
changeset
|
49 |
SessionName = ST_Name.Text; |
148 | 50 |
Email = ST_Email.Text; |
51 |
Alias = ST_Alias.Text; |
|
52 |
Description = ST_Desc.Text; |
|
143 | 53 |
if (EH_SurfaceButtonSubmit_ContactDown != null) |
54 |
EH_SurfaceButtonSubmit_ContactDown(this, new EventArgs()); |
|
55 |
} |
|
73 | 56 |
} |
57 |
||
148 | 58 |
#endregion |
59 |
||
61 | 60 |
} |
61 |
} |