diff -r b266af50744c -r e642ad0c366b src/FingersDance/MainSurfaceWindow.xaml.cs --- a/src/FingersDance/MainSurfaceWindow.xaml.cs Thu Nov 05 13:13:52 2009 +0100 +++ b/src/FingersDance/MainSurfaceWindow.xaml.cs Thu Nov 05 22:40:36 2009 +0100 @@ -434,6 +434,7 @@ Panel1 = new UserControlUserPanel(1, (new ColorFactory()).Colors[color], newCuttingVM, _mainviewmodel.Project.VideoPath); Panel1.Name = "UserPanel1"; Panel1.OnSuccessAnnotation += new EventHandler(Panel_OnSuccessAnnotation); + Panel1.OnTagVisualisation += new EventHandler(Panel_OnTagVisualisation); Panel1.idcolor = color; //3-Rajout sur la Grid Root root.Children.Add(Panel1); @@ -443,6 +444,7 @@ Panel2 = new UserControlUserPanel(2, (new ColorFactory()).Colors[color], newCuttingVM, _mainviewmodel.Project.VideoPath); Panel2.Name = "UserPanel2"; Panel2.OnSuccessAnnotation += new EventHandler(Panel_OnSuccessAnnotation); + Panel2.OnTagVisualisation += new EventHandler(Panel_OnTagVisualisation); Panel2.idcolor = color; //3-Rajout sur la Grid Root root.Children.Add(Panel2); @@ -452,6 +454,7 @@ Panel3 = new UserControlUserPanel(3, (new ColorFactory()).Colors[color], newCuttingVM, _mainviewmodel.Project.VideoPath); Panel3.Name = "UserPanel3"; Panel3.OnSuccessAnnotation += new EventHandler(Panel_OnSuccessAnnotation); + Panel3.OnTagVisualisation += new EventHandler(Panel_OnTagVisualisation); Panel3.idcolor = color; //3-Rajout sur la Grid Root root.Children.Add(Panel3); @@ -461,6 +464,7 @@ Panel4 = new UserControlUserPanel(4, (new ColorFactory()).Colors[color], newCuttingVM, _mainviewmodel.Project.VideoPath); Panel4.Name = "UserPanel4"; Panel4.OnSuccessAnnotation += new EventHandler(Panel_OnSuccessAnnotation); + Panel4.OnTagVisualisation += new EventHandler(Panel_OnTagVisualisation); Panel4.idcolor = color; //3-Rajout sur la Grid Root root.Children.Add(Panel4); @@ -523,8 +527,32 @@ Panel3.UserControlSyncSource_DisplayAnnotation(idUser, brushAnnot); if (Panel4 != null) Panel4.UserControlSyncSource_DisplayAnnotation(idUser, brushAnnot); - - + } + //On Tag Visualisation Mute all the other Players + private void Panel_OnTagVisualisation(object sender, EventArgs e) + { + UserControlUserPanel PanelMaster = (UserControlUserPanel)sender; + if (Panel1 != null) + { + if (!PanelMaster.Name.Equals(Panel1.Name)) + Panel1.PlayerMute(true); + } + if (Panel2 != null) + { + if (!PanelMaster.Name.Equals(Panel2.Name)) + Panel2.PlayerMute(true); + } + if (Panel3 != null) + { + if (!PanelMaster.Name.Equals(Panel3.Name)) + Panel3.PlayerMute(true); + } + if (Panel4 != null) + { + if (!PanelMaster.Name.Equals(Panel4.Name)) + Panel4.PlayerMute(true); + + } } } } \ No newline at end of file