client/src/Iri.Modernisation.Controls/ViewModel/ProductionEditor/ProductionEditorVM.cs
changeset 29 5f8d275750e7
parent 25 a9c815025a1b
child 35 43bb1b8ed555
--- 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<SLExtensions.Input.ExecutedEventArgs>(IndexSelected_Executed);
 
+       
         }
         void IndexSelected_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e)
         {
+           
             IsEditableIndex = (bool)e.Parameter;
             _selectedSegmentIndex = (SegmentIndex)e.Source;
             _selectedIndexTitle = _selectedSegmentIndex.Title;