--- a/client/src/Iri.Modernisation.Controls/ViewModel/VideoViewer/VideoViewerVM.cs Mon Dec 14 09:56:55 2009 +0100
+++ b/client/src/Iri.Modernisation.Controls/ViewModel/VideoViewer/VideoViewerVM.cs Mon Dec 14 11:25:01 2009 +0100
@@ -103,18 +103,29 @@
_recordControl = recordControl;
InitializeCommands();
}
+ public event EventHandler<VideoViewerVMEventArgs> Tick;
+
private void InitializeCommands()
{
- Commands.VideoViewer.SendPosition.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(SendPosition_Executed);
- //Commands.GoToTime.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(GoToTime_Executed);
-
+
}
- void SendPosition_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e)
+
+ public void LaunchTick(TimeSpan Pos)
{
- //Position = (TimeSpan)(e.Parameter);
+ if(Tick!=null)
+ {
+ Tick(this, new VideoViewerVMEventArgs(Pos));
+ }
}
-
}
+ public class VideoViewerVMEventArgs : EventArgs
+ {
+ public TimeSpan Position { get; set; }
+ public VideoViewerVMEventArgs(TimeSpan pos)
+ {
+ Position = pos;
+ }
+ }
}