src/FingersDance.Control.Player/UserControlPlayer.xaml.cs
changeset 162 0b9f989bcb37
parent 156 e16c8c913c65
child 163 d5148710e229
--- 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