diff -r 574041f3b2c9 -r 50e6fe2c2ea2 src/FingersDance.Control.UserPanel/UserControlUserPanel.xaml.cs --- a/src/FingersDance.Control.UserPanel/UserControlUserPanel.xaml.cs Thu Nov 19 09:29:15 2009 +0100 +++ b/src/FingersDance.Control.UserPanel/UserControlUserPanel.xaml.cs Thu Nov 19 12:15:12 2009 +0100 @@ -51,13 +51,16 @@ // Insert code required on object creation below this point. } - public UserControlUserPanel(int idPar, Color col, Cutting cutPar, string path) + public UserControlUserPanel(int idPar, Color col, Cutting cutPar, String path, String AnnotationOrSearchMode) { this.InitializeComponent(); id = idPar; cut = cutPar; + // We make the syncsrc load the good video and cutting this.UserControlSyncSource.Load(path, col, cut); - UserControlSyncSource.OnSuccessAnnotation+=new EventHandler(UserControlSyncSource_OnSuccessAnnotation); + UserControlSyncSource.OnSuccessAnnotation += new EventHandler(UserControlSyncSource_OnSuccessAnnotation); + // We make the menu load the good xml + UCMenu.MenuXmlFile = (AnnotationOrSearchMode == "Search") ? "menu_search.xml" : "menu.xml"; //SAR -Initialize Tag Values InitializeDefinitions(); }