diff -r 2d4ec5ab2a40 -r 5f8d275750e7 client/src/Iri.Modernisation.Controls/ViewModel/ProductionEditor/ProductionEditorVM.cs --- a/client/src/Iri.Modernisation.Controls/ViewModel/ProductionEditor/ProductionEditorVM.cs Tue Jan 05 15:53:48 2010 +0100 +++ b/client/src/Iri.Modernisation.Controls/ViewModel/ProductionEditor/ProductionEditorVM.cs Fri Jan 08 11:33:24 2010 +0100 @@ -13,10 +13,25 @@ using System.Collections.Generic; using System.Linq; using Iri.Modernisation.BaseMVVM.Commands; + namespace Iri.Modernisation.Controls.ViewModel { public class ProductionEditorVM: BaseMVVM.ViewModel.ViewModel { + private CaptureSource _captureSource; + public CaptureSource CaptureSource + { + get + { + return _captureSource; + } + set + { + _captureSource = value; + OnPropertyChanged("CaptureSource"); + } + } + private VideoViewerVM _videoViewerVM; public VideoViewerVM ViewModelVideoViewer { @@ -98,10 +113,36 @@ set { _isRecordMode = value; + IsEditMode = !value; + if (value) + { + + + } + else + { + + } OnPropertyChanged("IsRecordMode"); + } } + private bool _isEditMode; + public bool IsEditMode + { + get + { + return _isEditMode; + } + set + { + _isEditMode = value; + OnPropertyChanged("IsEditMode"); + } + } + + private bool _isEditableIndex; public bool IsEditableIndex { @@ -127,6 +168,7 @@ Source = Vs.Path }; ViewModelVideoViewer.AutoPlay = false; + IsRecordMode = false; InitializeCommands(); } private void InitializeCommands() @@ -134,9 +176,11 @@ Commands.ProductionTimeLine.IndexSelected.Executed += new EventHandler(IndexSelected_Executed); + } void IndexSelected_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e) { + IsEditableIndex = (bool)e.Parameter; _selectedSegmentIndex = (SegmentIndex)e.Source; _selectedIndexTitle = _selectedSegmentIndex.Title;