--- 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;
}
}
--- 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 @@
</Compile>
</ItemGroup>
<ItemGroup>
+ <Compile Include="ISyncSource.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
--- /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;
+ }
+}