|
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 using FingersDance.Data; |
|
11 |
|
12 namespace FingersDance.Control.SessionInput |
|
13 { |
|
14 /// <summary> |
|
15 /// Interaction logic for UserControlNewProjectForm.xaml |
|
16 /// </summary> |
|
17 public partial class UserControlNewProjectForm : UserControl |
|
18 { |
|
19 public event EventHandler EH_NewProjectForm_ContactDown; |
|
20 public string SessionName = ""; |
|
21 public string Email = ""; |
|
22 public string Alias = ""; |
|
23 public string Description = ""; |
|
24 |
|
25 public UserControlNewProjectForm() |
|
26 { |
|
27 this.InitializeComponent(); |
|
28 ST_Date.Text = DateTime.Now.Day.ToString() + "/" + DateTime.Now.Month.ToString() + "/" + DateTime.Now.Year.ToString(); |
|
29 } |
|
30 |
|
31 #region Actions |
|
32 |
|
33 private void SurfaceButtonSubmit_ContactDown(object sender, Microsoft.Surface.Presentation.ContactEventArgs e) |
|
34 { |
|
35 //if (!ST_Alias.Text.Equals("") && !ST_Date.Text.Equals("") && !ST_Email.Text.Equals("") && !ST_Name.Text.Equals("")) |
|
36 if (!ST_Name.Text.Equals("")) |
|
37 { |
|
38 SessionName = ST_Name.Text; |
|
39 Email= ST_Email.Text; |
|
40 Alias = ST_Alias.Text; |
|
41 Description = ST_Desc.Text; |
|
42 if (EH_NewProjectForm_ContactDown != null) |
|
43 EH_NewProjectForm_ContactDown(this, new EventArgs()); |
|
44 } |
|
45 } |
|
46 |
|
47 private void SurfaceButtonSubmit_Click(object sender, RoutedEventArgs e) |
|
48 { |
|
49 //if (!ST_Alias.Text.Equals("") && !ST_Date.Text.Equals("") && !ST_Email.Text.Equals("") && !ST_Name.Text.Equals("")) |
|
50 if (!ST_Name.Text.Equals("")) |
|
51 { |
|
52 SessionName = ST_Name.Text; |
|
53 Email = ST_Email.Text; |
|
54 Alias = ST_Alias.Text; |
|
55 Description = ST_Desc.Text; |
|
56 if (EH_NewProjectForm_ContactDown != null) |
|
57 EH_NewProjectForm_ContactDown(this, new EventArgs()); |
|
58 } |
|
59 } |
|
60 |
|
61 #endregion |
|
62 } |
|
63 } |