--- a/client/src/Iri.Modernisation.Controls/ViewModel/VideoViewer/VideoViewerVM.cs Wed Dec 16 17:14:38 2009 +0100
+++ b/client/src/Iri.Modernisation.Controls/ViewModel/VideoViewer/VideoViewerVM.cs Fri Dec 18 16:45:30 2009 +0100
@@ -97,11 +97,30 @@
OnPropertyChanged("RecordControl");
}
}
+
+ private bool _autoPlay;
+ public bool AutoPlay
+ {
+ get
+ {
+ return _autoPlay;
+ }
+ set
+ {
+ _autoPlay = value;
+ OnPropertyChanged("AutoPlay");
+ }
+
+ }
+
public VideoViewerVM(bool playControl,bool recordControl )
{
_playControl = playControl;
_recordControl = recordControl;
+
InitializeCommands();
+ AutoPlay = false;
+
}
public event EventHandler<VideoViewerVMEventArgs> Tick;
@@ -114,6 +133,10 @@
Position = pos;
Commands.GoToTime.Execute(Position,this);
}
+ public void Pause()
+ {
+ Commands.VideoViewer.Pause.Execute(null, this);
+ }
public void LaunchTick(TimeSpan Pos)
{
if(Tick!=null)