equal
deleted
inserted
replaced
21 { |
21 { |
22 //Creation d'un Event pour Chaque Item Video |
22 //Creation d'un Event pour Chaque Item Video |
23 public event EventHandler EH_ItemVideo1_ContactDown; |
23 public event EventHandler EH_ItemVideo1_ContactDown; |
24 |
24 |
25 public string path = ""; |
25 public string path = ""; |
|
26 public string VideoName = ""; |
26 |
27 |
27 public UserControlListVideo() |
28 public UserControlListVideo() |
28 { |
29 { |
29 this.InitializeComponent(); |
30 this.InitializeComponent(); |
30 UpdateList(); |
31 UpdateList(); |
34 |
35 |
35 //Event appelé lors de la selection d'un Item dans la Video List |
36 //Event appelé lors de la selection d'un Item dans la Video List |
36 private void ItemVideo_ContactTapGesture(object sender, Microsoft.Surface.Presentation.ContactEventArgs e) |
37 private void ItemVideo_ContactTapGesture(object sender, Microsoft.Surface.Presentation.ContactEventArgs e) |
37 { |
38 { |
38 path = ((CustomListBoxItem)sender).Path; |
39 path = ((CustomListBoxItem)sender).Path; |
|
40 VideoName = path; |
39 if (EH_ItemVideo1_ContactDown != null) |
41 if (EH_ItemVideo1_ContactDown != null) |
40 EH_ItemVideo1_ContactDown(this, new EventArgs()); |
42 EH_ItemVideo1_ContactDown(this, new EventArgs()); |
41 |
43 |
42 } |
44 } |
43 |
45 |
44 private void ItemVideo_Click(object sender, System.Windows.RoutedEventArgs e) |
46 private void ItemVideo_Click(object sender, System.Windows.RoutedEventArgs e) |
45 { |
47 { |
46 path = ((CustomListBoxItem)sender).Path; |
48 path = ((CustomListBoxItem)sender).Path; |
|
49 VideoName = path; |
47 if (EH_ItemVideo1_ContactDown != null) |
50 if (EH_ItemVideo1_ContactDown != null) |
48 EH_ItemVideo1_ContactDown(this, new EventArgs()); |
51 EH_ItemVideo1_ContactDown(this, new EventArgs()); |
49 |
52 |
50 } |
53 } |
51 |
54 |