23 { |
23 { |
24 //Creation d'un Event pour Chaque Item Video |
24 //Creation d'un Event pour Chaque Item Video |
25 public event EventHandler EH_Item_ContactDown; |
25 public event EventHandler EH_Item_ContactDown; |
26 public string SelectedItem = ""; |
26 public string SelectedItem = ""; |
27 |
27 |
28 public UserControlListProject(Dictionary<string, Project> projects) |
28 public UserControlListProject(Dictionary<string, Cutting> cuttings) |
29 { |
29 { |
30 InitializeComponent(); |
30 InitializeComponent(); |
31 OpenSessions(projects); |
31 OpenSessions(cuttings); |
32 } |
32 } |
33 |
33 |
34 private void OpenSessions(Dictionary<string, Project> projects) |
34 private void OpenSessions(Dictionary<string, Cutting> cuttings) |
35 { |
35 { |
36 try |
36 try |
37 { |
37 { |
38 CustomListBoxItem Contener = new CustomListBoxItem(); |
38 CustomListBoxItem Contener = new CustomListBoxItem(); |
39 Contener.Name = "New Project"; |
39 Contener.Name = "New Cutting"; |
40 UserControlCustomLabel l = new UserControlCustomLabel("New Project"); |
40 UserControlCustomLabel l = new UserControlCustomLabel("New Cutting"); |
41 Contener.Content = l; |
41 Contener.Content = l; |
42 stackPanel.Children.Add(Contener); |
42 stackPanel.Children.Add(Contener); |
43 Contener.ContactTapGesture += Item_ContactTapGesture; |
43 Contener.ContactTapGesture += Item_ContactTapGesture; |
44 foreach (KeyValuePair<string, Project> elt in projects) |
44 foreach (KeyValuePair<string, Cutting> elt in cuttings) |
45 { |
45 { |
46 Contener = new CustomListBoxItem(); |
46 Contener = new CustomListBoxItem(); |
47 Contener.Name = elt.Key; |
47 Contener.Name = elt.Key; |
48 l = new UserControlCustomLabel(elt.Key); |
48 l = new UserControlCustomLabel(elt.Key); |
49 Contener.Content = l; |
49 Contener.Content = l; |