# HG changeset patch
# User riley
# Date 1255880541 -7200
# Node ID e78e40b9d761096b25b6d2815c261f1898fd6472
# Parent 09700eb267020a39a854cbba1f8d867f66d3d429
Pivot Improved and methods for timeline
diff -r 09700eb26702 -r e78e40b9d761 src/FingersDance.Control.Pivot/UserControlPivot.xaml
--- a/src/FingersDance.Control.Pivot/UserControlPivot.xaml Fri Oct 16 22:19:24 2009 +0200
+++ b/src/FingersDance.Control.Pivot/UserControlPivot.xaml Sun Oct 18 17:42:21 2009 +0200
@@ -6,7 +6,7 @@
mc:Ignorable="d"
xmlns:Custom="http://schemas.microsoft.com/surface/2008" xmlns:Microsoft_Surface_Presentation_Generic="clr-namespace:Microsoft.Surface.Presentation.Generic;assembly=Microsoft.Surface.Presentation.Generic"
x:Class="FingersDance.Control.Pivot.UserControlPivot"
- x:Name="UserControl" Width="90" Height="90" Foreground="{x:Null}">
+ x:Name="UserControl" Width="88.5" Height="90" Foreground="{x:Null}">
@@ -134,12 +134,12 @@
-
-
+
+
-
-
-
+
+
+
@@ -149,7 +149,7 @@
-
+
@@ -159,7 +159,7 @@
-
+
@@ -169,6 +169,6 @@
-
+
\ No newline at end of file
diff -r 09700eb26702 -r e78e40b9d761 src/FingersDance.Control.Player/UserControlPlayer.xaml.cs
--- a/src/FingersDance.Control.Player/UserControlPlayer.xaml.cs Fri Oct 16 22:19:24 2009 +0200
+++ b/src/FingersDance.Control.Player/UserControlPlayer.xaml.cs Sun Oct 18 17:42:21 2009 +0200
@@ -29,7 +29,7 @@
#endregion
public event EventHandler PlayerOpened;
-
+ public event EventHandler PlayerStopOrPause;
public UserControlPlayer()
{
this.InitializeComponent();
@@ -73,6 +73,8 @@
public void playerPause()
{
MediaElementVideo.Pause();
+ if (PlayerStopOrPause != null)
+ PlayerStopOrPause(this, new EventArgs());
}
public void playerPlay()
{
@@ -81,10 +83,13 @@
public void playerStop()
{
MediaElementVideo.Stop();
+ if (PlayerStopOrPause != null)
+ PlayerStopOrPause(this, new EventArgs());
}
#endregion
+
#region Button Simple Player Actions
private void ButtonPlayPause_ContactDown(object sender, Microsoft.Surface.Presentation.ContactEventArgs e)
{
diff -r 09700eb26702 -r e78e40b9d761 src/FingersDance.Control.SyncSource/UserControlSyncSource.xaml.cs
--- a/src/FingersDance.Control.SyncSource/UserControlSyncSource.xaml.cs Fri Oct 16 22:19:24 2009 +0200
+++ b/src/FingersDance.Control.SyncSource/UserControlSyncSource.xaml.cs Sun Oct 18 17:42:21 2009 +0200
@@ -32,6 +32,7 @@
UCTimeLine.initTimer(col, projCutting);
this.UserControlPlayer.playerPlay();
this.userControlTimeLine.OnSuccessAnnotation+=new EventHandler(userControlTimeLine_OnSuccessAnnotation);
+ this.UserControlPlayer.PlayerStopOrPause +=new EventHandler(UserControlPlayer_PlayerStopOrPause);
}
#region player
@@ -48,6 +49,11 @@
public void UserControlPlayer_DisplayAnnotation(int id, Brush b)
{
UserControlPlayer.displayStackPanelAnnotations(id, b);
+
+ }
+ public void UserControlPlayer_PlayerStopOrPause(object sender, EventArgs e)
+ {
+
}
#endregion
diff -r 09700eb26702 -r e78e40b9d761 src/FingersDance.Control.TimeLine/UserControlTimeLine.xaml
--- a/src/FingersDance.Control.TimeLine/UserControlTimeLine.xaml Fri Oct 16 22:19:24 2009 +0200
+++ b/src/FingersDance.Control.TimeLine/UserControlTimeLine.xaml Sun Oct 18 17:42:21 2009 +0200
@@ -162,6 +162,16 @@
+
+
+
+
+
+
+
+
+
+
@@ -776,12 +786,23 @@
+
-
+
\ No newline at end of file