diff -r beb938b4fb76 -r bd33267300aa client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/ProductionTimeLine.xaml.cs --- a/client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/ProductionTimeLine.xaml.cs Wed Jan 27 10:55:59 2010 +0100 +++ b/client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/ProductionTimeLine.xaml.cs Thu Feb 04 16:38:04 2010 +0100 @@ -35,9 +35,25 @@ TimeSlider.MouseLeftButtonDown += new MouseButtonEventHandler(TimeSlider_MouseLeftButtonDown); TimeSlider.ValueChanged += new RoutedPropertyChangedEventHandler(TimeSlider_ValueChanged); TimeSlider.Maximum = TimeSlider.ActualWidth / ProductionTimeLine.ScaleTime; - + TimeSlider.ThumbDragStarted += new EventHandler(TimeSlider_ThumbDragStarted); + TimeSlider.ThumbDragCompleted += new EventHandler(TimeSlider_ThumbDragCompleted); ScaleTimeLine.ValueChanged += new RoutedPropertyChangedEventHandler(ScaleTimeLine_ValueChanged); } + private bool _saveVideoViewerState { get; set; } + void TimeSlider_ThumbDragCompleted(object sender, EventArgs e) + { + if (_saveVideoViewerState) + { + ((ProductionTimeLineVM)DataContext).ViewModelVideoViewer.Play(); + } + } + + void TimeSlider_ThumbDragStarted(object sender, EventArgs e) + { + _saveVideoViewerState = ((ProductionTimeLineVM)DataContext).ViewModelVideoViewer.IsPLayed; + ((ProductionTimeLineVM)DataContext).ViewModelVideoViewer.Pause(); + + } bool _mousecapture { get; set; } void TimeSlider_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { @@ -284,6 +300,11 @@ Commands.ProductionView.DelVideoSequence.Execute(((CustomableVideoElement)_selected).DataContext); } + private void TimeSlider_ValueChanged_1(object sender, RoutedPropertyChangedEventArgs e) + { + + } + } } \ No newline at end of file