diff -r 643d31851d02 -r 0b9f989bcb37 src/FingersDance.Control.Player/UserControlPlayer.xaml.cs --- a/src/FingersDance.Control.Player/UserControlPlayer.xaml.cs Fri Oct 16 16:26:21 2009 +0200 +++ b/src/FingersDance.Control.Player/UserControlPlayer.xaml.cs Fri Oct 16 21:06:25 2009 +0200 @@ -85,6 +85,7 @@ #endregion + #region Button Simple Player Actions private void ButtonPlayPause_ContactDown(object sender, Microsoft.Surface.Presentation.ContactEventArgs e) { if (!isPlaying)//Play @@ -171,6 +172,8 @@ } } + #endregion + private void MediaElementVideo_MediaOpened(object sender, RoutedEventArgs e) { OnPlayerOpened(); @@ -253,5 +256,18 @@ } } + + //This function Sets a brush in a specific rectangle of the StackPanelAnnotation + public void displayStackPanelAnnotations(int id, Brush brushAnnotation) + { + switch (id) + { + case 1: rect1.Fill = brushAnnotation; break; + case 2: rect2.Fill = brushAnnotation; break; + case 3: rect3.Fill = brushAnnotation; break; + case 4: rect4.Fill = brushAnnotation; break; + default: break; + } + } } } \ No newline at end of file