src/FingersDance.Control.UserPanel/UserControlUserPanel.xaml.cs
changeset 216 45d2dff788f2
parent 215 d13dbcf861d7
child 224 874de6d84a2e
--- a/src/FingersDance.Control.UserPanel/UserControlUserPanel.xaml.cs	Thu Nov 19 18:05:52 2009 +0100
+++ b/src/FingersDance.Control.UserPanel/UserControlUserPanel.xaml.cs	Fri Nov 20 17:14:52 2009 +0100
@@ -27,7 +27,6 @@
         public int id = 0;
         public uint idcolor = 0;    //The color of the Pivot Button
         private Cutting cut;
-        private Project searchedProject;
 
         //variables for TagSound Control
         double baseOrientation = 0;
@@ -60,9 +59,8 @@
             this.InitializeComponent();
             id = idPar;
             cut = cutPar;
-            searchedProject = searchedProj;
             // We make the syncsrc load the good video and cutting 
-            this.UserControlSyncSource.Load(path, col, cut);
+            this.UserControlSyncSource.Load(path, col, cut, AnnotationOrSearchMode, searchedProj);
             UserControlSyncSource.OnSuccessAnnotation += new EventHandler(UserControlSyncSource_OnSuccessAnnotation);
             // We make the menu load the good xml
             UCMenu.MenuXmlFile = (AnnotationOrSearchMode == "Search") ? "menu_search.xml" : "menu.xml";