--- a/src/FingersDance.Control.SyncSource/UserControlSyncSource.xaml.cs Fri Oct 16 16:26:21 2009 +0200
+++ b/src/FingersDance.Control.SyncSource/UserControlSyncSource.xaml.cs Fri Oct 16 21:06:25 2009 +0200
@@ -14,6 +14,10 @@
{
public partial class UserControlSyncSource
{
+ #region Variables
+ public event EventHandler OnSuccessAnnotation;
+ #endregion
+
public UserControlSyncSource()
{
this.InitializeComponent();
@@ -27,6 +31,7 @@
//Initialisation du Timer
UCTimeLine.initTimer(col, projCutting);
this.UserControlPlayer.playerPlay();
+ this.userControlTimeLine.OnSuccessAnnotation+=new EventHandler(userControlTimeLine_OnSuccessAnnotation);
}
#region player
@@ -38,6 +43,12 @@
UCTimeLine.timerStart();
}
+
+ //Set a bursh color to the stack panel in the Player
+ public void UserControlPlayer_DisplayAnnotation(int id, Brush b)
+ {
+ UserControlPlayer.displayStackPanelAnnotations(id, b);
+ }
#endregion
#region TimeLine
@@ -52,6 +63,10 @@
private void UserControlTimeLine_DragCompleted(object sender, EventArgs e)
{
}
+ private void userControlTimeLine_OnSuccessAnnotation(object sender, EventArgs e)
+ {
+ OnSuccessAnnotation(this, new EventArgs());
+ }
#endregion