src/FingersDance.Control.UserPanel/UserControlUserPanel.xaml.cs
changeset 211 50e6fe2c2ea2
parent 199 70e93b0bd778
child 214 beebae32b1ed
--- 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();
         }