# HG changeset patch # User ymh # Date 1253695774 -7200 # Node ID 3bf9b343158d3cbd6790972e2efb80a9345c6421 # Parent e95e916eb018702de009955f3810a81a7965cda7 Create branch syncsource diff -r e95e916eb018 -r 3bf9b343158d src/FingersDance.Control.Player/UserControlPlayer.xaml.cs --- a/src/FingersDance.Control.Player/UserControlPlayer.xaml.cs Sun Sep 20 18:02:37 2009 +0200 +++ b/src/FingersDance.Control.Player/UserControlPlayer.xaml.cs Wed Sep 23 10:49:34 2009 +0200 @@ -89,7 +89,7 @@ { MediaElementVideo.Play(); } - catch (Exception ex) { } + catch (Exception) { } } else//Pause { @@ -98,7 +98,7 @@ { MediaElementVideo.Pause(); } - catch (Exception exx) { } + catch (Exception) { } } } @@ -112,7 +112,7 @@ { MediaElementVideo.Play(); } - catch (Exception ex) { } + catch (Exception) { } } else//Pause @@ -122,7 +122,7 @@ { MediaElementVideo.Pause(); } - catch (Exception exx) { } + catch (Exception) { } //ButtonPlayPause.Background = FindResource("[Skin_1]_Play_button_xaml") as Brush; } } diff -r e95e916eb018 -r 3bf9b343158d src/FingersDance.Control.SyncSource/FingersDance.Control.SyncSource.csproj --- a/src/FingersDance.Control.SyncSource/FingersDance.Control.SyncSource.csproj Sun Sep 20 18:02:37 2009 +0200 +++ b/src/FingersDance.Control.SyncSource/FingersDance.Control.SyncSource.csproj Wed Sep 23 10:49:34 2009 +0200 @@ -77,6 +77,7 @@ + ResXFileCodeGenerator diff -r e95e916eb018 -r 3bf9b343158d src/FingersDance.Control.SyncSource/ISyncSource.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/FingersDance.Control.SyncSource/ISyncSource.cs Wed Sep 23 10:49:34 2009 +0200 @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Windows; + +namespace FingersDance.Control.SyncSource +{ + public enum SyncSourceState + { + Playing, + Paused, + Stopped + } + + public class SyncSourceEventArg : RoutedEventArgs + { + public SyncSourceState OrignalState { get; set; } + } + + public delegate void SyncSourceEventHandler(Object source, SyncSourceEventArg e); + + public interface ISyncSource + { + void Play(); + void Pause(); + void Stop(); + SyncSourceState State { get; set; } + event SyncSourceEventHandler CurrentStateChanged; + } +}