diff -r 643d31851d02 -r 0b9f989bcb37 src/FingersDance.Control.UserPanel/UserControlUserPanel.xaml.cs --- a/src/FingersDance.Control.UserPanel/UserControlUserPanel.xaml.cs Fri Oct 16 16:26:21 2009 +0200 +++ b/src/FingersDance.Control.UserPanel/UserControlUserPanel.xaml.cs Fri Oct 16 21:06:25 2009 +0200 @@ -13,16 +13,24 @@ { public partial class UserControlUserPanel { + #region Variables + + public event EventHandler OnSuccessAnnotation; //Event to display ColorAnnotation from different Users public int id = 0; + public uint idcolor = 0; //The color of the Pivot Button Project _Project = new Project(); + #endregion + #region Properties public Project Project { get { return _Project; } set { _Project = value; } } + #endregion - public UserControlUserPanel() + #region Constructors + public UserControlUserPanel() { this.InitializeComponent(); @@ -35,11 +43,24 @@ id = idPar; _Project = p; this.UserControlSyncSource.Load(path, col, _Project.Cutting); + UserControlSyncSource.OnSuccessAnnotation+=new EventHandler(UserControlSyncSource_OnSuccessAnnotation); } + #endregion public void PlayerPause() { UserControlSyncSource.PlayerPause(); } + + + private void UserControlSyncSource_OnSuccessAnnotation(object sender, EventArgs e) + { + OnSuccessAnnotation(this, new EventArgs()); + } + + public void UserControlSyncSource_DisplayAnnotation(int id, Brush b) + { + UserControlSyncSource.UserControlPlayer_DisplayAnnotation(id, b); + } } } \ No newline at end of file