src/FingersDance.Control.UserPanel/UserControlUserPanel.xaml.cs
changeset 216 45d2dff788f2
parent 215 d13dbcf861d7
child 224 874de6d84a2e
equal deleted inserted replaced
215:d13dbcf861d7 216:45d2dff788f2
    25         public event EventHandler OnSuccessAnnotation;  //Event to display ColorAnnotation from different Users   
    25         public event EventHandler OnSuccessAnnotation;  //Event to display ColorAnnotation from different Users   
    26         public event EventHandler OnTagVisualisation; //Event to Mute all Players
    26         public event EventHandler OnTagVisualisation; //Event to Mute all Players
    27         public int id = 0;
    27         public int id = 0;
    28         public uint idcolor = 0;    //The color of the Pivot Button
    28         public uint idcolor = 0;    //The color of the Pivot Button
    29         private Cutting cut;
    29         private Cutting cut;
    30         private Project searchedProject;
       
    31 
    30 
    32         //variables for TagSound Control
    31         //variables for TagSound Control
    33         double baseOrientation = 0;
    32         double baseOrientation = 0;
    34         double deltaOrientation = 0;
    33         double deltaOrientation = 0;
    35         double lastdeltaOrientation = 0;
    34         double lastdeltaOrientation = 0;
    58         public UserControlUserPanel(int idPar, Color col, Cutting cutPar, String path, String AnnotationOrSearchMode, Project searchedProj)
    57         public UserControlUserPanel(int idPar, Color col, Cutting cutPar, String path, String AnnotationOrSearchMode, Project searchedProj)
    59         {
    58         {
    60             this.InitializeComponent();
    59             this.InitializeComponent();
    61             id = idPar;
    60             id = idPar;
    62             cut = cutPar;
    61             cut = cutPar;
    63             searchedProject = searchedProj;
       
    64             // We make the syncsrc load the good video and cutting 
    62             // We make the syncsrc load the good video and cutting 
    65             this.UserControlSyncSource.Load(path, col, cut);
    63             this.UserControlSyncSource.Load(path, col, cut, AnnotationOrSearchMode, searchedProj);
    66             UserControlSyncSource.OnSuccessAnnotation += new EventHandler(UserControlSyncSource_OnSuccessAnnotation);
    64             UserControlSyncSource.OnSuccessAnnotation += new EventHandler(UserControlSyncSource_OnSuccessAnnotation);
    67             // We make the menu load the good xml
    65             // We make the menu load the good xml
    68             UCMenu.MenuXmlFile = (AnnotationOrSearchMode == "Search") ? "menu_search.xml" : "menu.xml";
    66             UCMenu.MenuXmlFile = (AnnotationOrSearchMode == "Search") ? "menu_search.xml" : "menu.xml";
    69             //SAR -Initialize Tag Values
    67             //SAR -Initialize Tag Values
    70             InitializeDefinitions();
    68             InitializeDefinitions();