diff -r a48c44bc825b -r 3f70aee2432f client/src/Iri.Modernisation.Controls/ViewModel/VideoViewer/VideoViewerVM.cs --- a/client/src/Iri.Modernisation.Controls/ViewModel/VideoViewer/VideoViewerVM.cs Wed Nov 25 12:06:26 2009 +0100 +++ b/client/src/Iri.Modernisation.Controls/ViewModel/VideoViewer/VideoViewerVM.cs Mon Nov 30 10:20:35 2009 +0100 @@ -44,6 +44,7 @@ } } + public String Info { get @@ -52,6 +53,7 @@ } } + private TimeSpan position = new TimeSpan(0,0,0); public TimeSpan Position { @@ -67,12 +69,46 @@ } } - public VideoViewerVM() + + private bool _playControl; + public bool PlayControl + { + get + { + return _playControl; + } + set + { + _playControl = value; + OnPropertyChanged("PlayControl"); + } + } + + private bool _recordControl; + public bool RecordControl + { + get + { + return _recordControl; + } + set + { + _recordControl = value; + OnPropertyChanged("RecordControl"); + } + } + public VideoViewerVM(bool playControl,bool recordControl ) + { + _playControl = playControl; + _recordControl = recordControl; + InitializeCommands(); + } + 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) { //Position = (TimeSpan)(e.Parameter);