diff -r 253f142174ac -r 69a2910ec6f9 client/src/Iri.Modernisation.Controls/ViewModel/VideoViewer/VideoViewerVM.cs --- 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 Tick; + private void InitializeCommands() { - Commands.VideoViewer.SendPosition.Executed += new EventHandler(SendPosition_Executed); - //Commands.GoToTime.Executed += new EventHandler(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; + } + } }