src/FingersDance/MainSurfaceWindow.xaml.cs
changeset 97 31b24064b28f
parent 95 07972aa3f2e0
child 104 1a428e733fea
equal deleted inserted replaced
96:890824195ceb 97:31b24064b28f
   339                 //2-Recuperer la Grid (Layout root du UC screen)qui contient le UCListVideo et l'ajouter.
   339                 //2-Recuperer la Grid (Layout root du UC screen)qui contient le UCListVideo et l'ajouter.
   340                 Grid actualGrid = (Grid)(((UserControlListVideo)sender).Parent);
   340                 Grid actualGrid = (Grid)(((UserControlListVideo)sender).Parent);
   341                 actualGrid.Children.Add(SessionInput);
   341                 actualGrid.Children.Add(SessionInput);
   342                 
   342                 
   343                 //2.5 rensegner la video choisie au screen
   343                 //2.5 rensegner la video choisie au screen
   344                 ((UserControlScreen)actualGrid.Parent).Path = ((CustomListBoxItem)sender).Path;
   344                 ((UserControlScreen)actualGrid.Parent).Path = ((UserControlListVideo)sender).path;
   345                 //3-Creation des Events
   345                 //3-Creation des Events
   346                 SessionInput.EH_SurfaceButtonSubmit_ContactDown += new System.EventHandler(this.SessionInput_EH_SurfaceButtonSubmit_ContactDown);
   346                 SessionInput.EH_SurfaceButtonSubmit_ContactDown += new System.EventHandler(this.SessionInput_EH_SurfaceButtonSubmit_ContactDown);
   347                 //4-Supression du UC List Video
   347                 //4-Supression du UC List Video
   348                 actualGrid.Children.Remove((UserControlListVideo)sender);
   348                 actualGrid.Children.Remove((UserControlListVideo)sender);
   349 
   349