Update ProductionView
authorMatthieu Totet
Tue, 08 Dec 2009 11:39:27 +0100
changeset 19 7d044e7562ea
parent 18 66911d0f0eb6
child 20 c2dd8119a6c1
Update ProductionView
client/src/Iri.Modernisation.BaseMVVM/Commands/Commands.cs
client/src/Iri.Modernisation.Controls/View/HeaderProduction/HeaderProduction.xaml
client/src/Iri.Modernisation.Controls/View/HeaderProduction/HeaderProduction.xaml.cs
client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/ProductionTimeLine.xaml
client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/ProductionTimeLine.xaml.cs
client/src/Iri.Modernisation.Controls/View/ProductionView/ProductionView.xaml
client/src/Iri.Modernisation.Controls/View/ProductionView/ProductionView.xaml.cs
client/src/Iri.Modernisation.Controls/ViewModel/ProductionTimeLine/ProductionTimeLineVM.cs
client/src/Iri.Modernisation.Controls/ViewModel/ProductionView/ProductionViewVM.cs
client/src/Iri.Modernisation.Lang/LangResource.Designer.cs
client/src/Iri.Modernisation.Lang/LangResource.en-US.resx
client/src/Iri.Modernisation.Lang/LangResource.fr-FR.resx
client/src/Iri.Modernisation.Lang/LangResource.resx
--- a/client/src/Iri.Modernisation.BaseMVVM/Commands/Commands.cs	Mon Dec 07 10:36:55 2009 +0100
+++ b/client/src/Iri.Modernisation.BaseMVVM/Commands/Commands.cs	Tue Dec 08 11:39:27 2009 +0100
@@ -487,7 +487,28 @@
             private set;
         }
 
-        
+        public static class ProductionView
+        {
+           
+            static ProductionView()
+            {
+                ClickAddSelectedRecord = new Command("ClickAddSelectedRecord");
+                VideoRecordUpdated = new Command("VideoRecordUpdated");
+            }
+            public static Command ClickAddSelectedRecord
+            {
+                get;
+                private set;
+            }
+            public static Command VideoRecordUpdated
+            {
+                get;
+                private set;
+            }
+            public static void Initialize()
+            {
+            }
+        }
         /// <summary>
         /// Ensure static fields are initialized
         /// </summary>
@@ -503,7 +524,8 @@
             HeaderProduction.Initialize();
             ProductionTimeLine.Initialize();
             VideoViewer.Initialize();
-            ProductionTimeLine.Initialize();
+            ProductionView.Initialize();
+            
         }
     }
 }
--- a/client/src/Iri.Modernisation.Controls/View/HeaderProduction/HeaderProduction.xaml	Mon Dec 07 10:36:55 2009 +0100
+++ b/client/src/Iri.Modernisation.Controls/View/HeaderProduction/HeaderProduction.xaml	Tue Dec 08 11:39:27 2009 +0100
@@ -24,7 +24,7 @@
 				<TextBlock Style="{StaticResource CommonTextBlock}" x:Name="ChapterTitleLabel"  Text="Modernisation" TextWrapping="Wrap"/>
 				<StackPanel x:Name="Chapter01Panel" Height="82" Margin="8,0,19,0">
 					<Grid x:Name="C01EPanel" Height="27" HorizontalAlignment="Left" Width="149">
-					    <View:HeaderProductionPartControler x:Name="ModernisationEditionController" Text="{Binding AnnotationMakerTitle, Source={StaticResource LangLabels}}" d:LayoutOverrides="VerticalMargin"/>
+					    <View:HeaderProductionPartControler x:Name="ModernisationEditionController" Text="{Binding EditingLabel, Source={StaticResource LangLabels}}" d:LayoutOverrides="VerticalMargin"/>
 					</Grid>
 					<Grid x:Name="C01IPanel" Height="27" HorizontalAlignment="Left" Width="149">
 						
@@ -39,7 +39,7 @@
 				<TextBlock  Style="{StaticResource CommonTextBlock}" x:Name="ChapterTitleLabel1"  TextWrapping="Wrap"><Run Text="Moderni"/><Run Text="té"/></TextBlock>
 				<StackPanel x:Name="Chapter02Panel" Height="82" Margin="8,0">
 					<Grid x:Name="C02EPanel" Height="27" HorizontalAlignment="Left" Width="166">
-						<View:HeaderProductionPartControler x:Name="ModerniteEditionController" ></View:HeaderProductionPartControler>
+						<View:HeaderProductionPartControler Text="{Binding EditingLabel, Source={StaticResource LangLabels}}" x:Name="ModerniteEditionController" ></View:HeaderProductionPartControler>
 					</Grid>
 					<Grid x:Name="C02IPanel" Height="27" HorizontalAlignment="Left" Width="166">
 						<!--<TextBlock  Style="{StaticResource CommonTextBlock}" x:Name="C02ILabel"  Text="Indexation" TextWrapping="Wrap" Margin="0,0,82,0"/>
@@ -57,7 +57,7 @@
 					<Grid x:Name="C03EPanel" Height="27" HorizontalAlignment="Left" Width="173">
 						<!--<TextBlock  Style="{StaticResource CommonTextBlock}" x:Name="C03ELabel"  Text="Edition" TextWrapping="Wrap" Margin="0,0,89,0"/>
 						<Button x:Name="C03EButton" BorderThickness="1"  Width="43" Input:CommandService.Command="Chap03EditingOkClick"  Content="Ok" HorizontalAlignment="Right" Margin="0,0,39,0" IsEnabled="{Binding IsChap03EditingEnable}"/>-->
-						<View:HeaderProductionPartControler x:Name="PostModerniteEditionController"></View:HeaderProductionPartControler>
+						<View:HeaderProductionPartControler Text="{Binding EditingLabel, Source={StaticResource LangLabels}}" x:Name="PostModerniteEditionController"></View:HeaderProductionPartControler>
 					</Grid>
 					<Grid x:Name="C03IPanel" Height="27" HorizontalAlignment="Left" Width="173">
 						<!--<TextBlock Style="{StaticResource CommonTextBlock}" x:Name="C03ILabel"  Text="Indexation" TextWrapping="Wrap" Margin="0,0,89,0"/>
@@ -75,7 +75,7 @@
 					<Grid x:Name="C04EPanel" Height="27" HorizontalAlignment="Left" Width="165">
 						<!--<TextBlock  Style="{StaticResource CommonTextBlock}" x:Name="C04ELabel"  Text="Edition" TextWrapping="Wrap" Margin="0,0,81,0"/>
 						<Button x:Name="C04EButton" BorderThickness="1" Input:CommandService.Command="Chap04EditingOkClick"  Width="43" Content="Ok" HorizontalAlignment="Right" Margin="0,0,31,0" IsEnabled="{Binding IsChap04EditingEnable}"/>-->
-						<View:HeaderProductionPartControler x:Name="OuvertureEditionController"></View:HeaderProductionPartControler>
+						<View:HeaderProductionPartControler Text="{Binding EditingLabel, Source={StaticResource LangLabels}}" x:Name="OuvertureEditionController"></View:HeaderProductionPartControler>
 					</Grid>
 					<Grid x:Name="C04IPanel" Height="27" HorizontalAlignment="Left" Width="165">
 						<!--<TextBlock  Style="{StaticResource CommonTextBlock}" x:Name="C04ILabel"  Text="Indexation" TextWrapping="Wrap" Margin="0,0,81,0"/>
--- a/client/src/Iri.Modernisation.Controls/View/HeaderProduction/HeaderProduction.xaml.cs	Mon Dec 07 10:36:55 2009 +0100
+++ b/client/src/Iri.Modernisation.Controls/View/HeaderProduction/HeaderProduction.xaml.cs	Tue Dec 08 11:39:27 2009 +0100
@@ -19,14 +19,21 @@
 			// Required to initialize variables
 			InitializeComponent();
             ModernisationEditionController.Active();
-            ModernisationEditionController.Text = Iri.Modernisation.Lang.LangResource.AnnotationMakerTitle;
+            
+            ModernisationEditionController.Text = Iri.Modernisation.Lang.LangResource.EditingLabel;
+            ModernisationIndexController.Text = Iri.Modernisation.Lang.LangResource.IndexingLabel;
+          
 
-            ModerniteEditionController.Text = "Edition";
-            ModerniteIndexController.Text = "Indexation";
-            PostModerniteEditionController.Text = "Edition";
-            PostModerniteIndexController.Text = "Indexation";
-            OuvertureEditionController.Text = "Edition";
-            OuvertureIndexController.Text = "Indexation";
+            ModerniteEditionController.Text = Iri.Modernisation.Lang.LangResource.EditingLabel;
+            ModerniteIndexController.Text = Iri.Modernisation.Lang.LangResource.IndexingLabel;
+            
+
+            PostModerniteEditionController.Text = Iri.Modernisation.Lang.LangResource.EditingLabel;
+            PostModerniteIndexController.Text = Iri.Modernisation.Lang.LangResource.IndexingLabel;
+            
+
+            OuvertureEditionController.Text = Iri.Modernisation.Lang.LangResource.EditingLabel;
+            OuvertureIndexController.Text = Iri.Modernisation.Lang.LangResource.IndexingLabel;
 
             /////////////////////////--
             ModernisationEditionController.HeaderProductionPartSelected += new EventHandler<HeaderProductionPartControlerEventArgs>(HeaderProductionPartSelected);
--- a/client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/ProductionTimeLine.xaml	Mon Dec 07 10:36:55 2009 +0100
+++ b/client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/ProductionTimeLine.xaml	Tue Dec 08 11:39:27 2009 +0100
@@ -22,8 +22,15 @@
 					<ColumnDefinition/>
 				</Grid.ColumnDefinitions>
 				<Slider x:Name="slider" VerticalAlignment="Top" RenderTransformOrigin="0.5,0.5" SmallChange="0" ValueChanged="slider_ValueChanged"/>
-				<StackPanel x:Name="VideoTimeStrip" Margin="0,21,0,0" Orientation="Horizontal" Height="32" VerticalAlignment="Top" />
-				<StackPanel x:Name="AnnotationTimeStrip" Margin="0,57,0,67" Orientation="Horizontal" />
+				<StackPanel x:Name="VideoTimeStrip" Margin="0,21,0,0" Orientation="Horizontal" Height="32" VerticalAlignment="Top">
+					<!--<StackPanel Orientation="Horizontal" x:Name="ModenisationVideoTimeStrip"></StackPanel>
+					<StackPanel Orientation="Horizontal" x:Name="ModeniteVideoTimeStrip"></StackPanel>
+					<StackPanel Orientation="Horizontal" x:Name="PostModerniteVideoTimeStrip"></StackPanel>
+					<StackPanel Orientation="Horizontal" x:Name="OuvertureVideoTimeStrip"></StackPanel>-->
+				</StackPanel>
+				<StackPanel x:Name="AnnotationTimeStrip" Margin="0,57,0,67" Orientation="Horizontal" >
+				
+				</StackPanel>
 			</Grid>
 		</ScrollViewer>
 	</StackPanel>
--- a/client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/ProductionTimeLine.xaml.cs	Mon Dec 07 10:36:55 2009 +0100
+++ b/client/src/Iri.Modernisation.Controls/View/ProductionTimeLine/ProductionTimeLine.xaml.cs	Tue Dec 08 11:39:27 2009 +0100
@@ -10,6 +10,7 @@
 using Iri.Modernisation.BaseMVVM.Commands;
 using Iri.Modernisation.Data.Models;
 using Iri.Modernisation.Controls.ViewModel;
+using SLExtensions.Collections.ObjectModel;
 namespace Iri.Modernisation.Controls.View
 {
   
@@ -26,16 +27,50 @@
 		{
 			// Required to initialize variables
 			InitializeComponent();
-          
-            Commands.Action.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(Action_Executed);
+            Commands.ProductionView.VideoRecordUpdated.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(VideoRecordUpdated_Executed);
+             Commands.Action.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(Action_Executed);
           
 		}
 
+        void VideoRecordUpdated_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e)
+        {
+          UpdateElements();
+        }
+     
+
         void Action_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e)
         {
             AddSequenceButton.Content = ((MouseEventArgs)e.Parameter).GetPosition(this).X;
         }
+        public void UpdateElements()
+        {
+            if (DataContext != null)
+            {
+                VideoTimeStrip.Children.Clear();
+                int intChapter = 0;
+                foreach(ObservableCollection<VideoSequence> Ocvs in  ((ProductionTimeLineVM)this.DataContext).ListVideoSequences)
+                {
+                    foreach (VideoSequence Vs in Ocvs)
+                    {
+                        CustomableVideoElement _temp = new CustomableVideoElement()
+                        {
+                            DataContext = new CustomableVideoElementVM(Vs)
+                            {
+                                Chapter = (VideoChapterType)intChapter
+                            },
+                        };
+                        _temp.MouseMove += new MouseEventHandler(CustomableVideoElement_MouseMove);
+                        _temp.MouseLeftButtonDown += new MouseButtonEventHandler(CustomableVideoElement_MouseLeftButtonDown);
+                        _temp.MouseLeftButtonUp += new MouseButtonEventHandler(CustomableVideoElement_MouseLeftButtonUp);
 
+                        VideoTimeStrip.Children.Add(_temp);// TODO: Add event handler implementation here.
+
+                    }
+                    intChapter++;
+                }
+                
+            }
+        }
         private void AddSequenceButton_Click(object sender, System.Windows.RoutedEventArgs e)
         {
             Random rndNumbers = new Random();
--- a/client/src/Iri.Modernisation.Controls/View/ProductionView/ProductionView.xaml	Mon Dec 07 10:36:55 2009 +0100
+++ b/client/src/Iri.Modernisation.Controls/View/ProductionView/ProductionView.xaml	Tue Dec 08 11:39:27 2009 +0100
@@ -2,16 +2,32 @@
     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
     xmlns:View="clr-namespace:Iri.Modernisation.Controls.View"
-    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="Iri.Modernisation.Controls.View.ProductionView" mc:Ignorable="d" Height="688">
-    <Grid x:Name="LayoutRoot">
+    xmlns:Lang="clr-namespace:Iri.Modernisation.Lang;assembly=Iri.Modernisation.Lang"
+	xmlns:Input="clr-namespace:SLExtensions.Input;assembly=SLExtensions" 
+   
+	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="Iri.Modernisation.Controls.View.ProductionView" mc:Ignorable="d" Height="688">
+    <UserControl.Resources>
+	 <Lang:LangResource x:Name="LangLabels" x:Key="LangLabels"></Lang:LangResource>
+           
+	</UserControl.Resources>
+	<Grid x:Name="LayoutRoot">
 
     	<View:HeaderProduction DataContext="{Binding ViewModelHeaderProduction}" x:Name="HeaderProductionElement" HorizontalAlignment="Left" VerticalAlignment="Top" d:LayoutOverrides="VerticalAlignment"/>
-    	<View:ProductionTimeLine Height="176" VerticalAlignment="Bottom" DataContext="{Binding ViewModelProductionTimeLine}"/>
+    	<View:ProductionTimeLine x:Name="ProductionTimeLineElement" Height="176" VerticalAlignment="Bottom" DataContext="{Binding ViewModelProductionTimeLine}"/>
     	<View:ProductionEditor Margin="272,115,0,0" HorizontalAlignment="Left" Height="369" VerticalAlignment="Top"/>
     	<View:VideoViewer HorizontalAlignment="Right" Margin="0,115,8,204" Width="404"/>
-    	<StackPanel x:Name="RecordsPanel" HorizontalAlignment="Left" Margin="8,288,0,216" Width="248">
-    		<TextBlock x:Name="RecordLabel" Text="Records" TextWrapping="Wrap"/>
-    		<ListBox x:Name="RecordsList" Height="168"/>
+    	<StackPanel x:Name="RecordsPanel" HorizontalAlignment="Left" Margin="8,264,0,216" Width="248">
+    		<TextBlock Style="{StaticResource CommonTextBlock}" Text="{Binding RecordsLabel, Source={StaticResource LangLabels}}" x:Name="RecordLabel" TextWrapping="Wrap"/>
+    		<ListBox SelectedItem="{Binding SelectedVideoSequence,Mode=TwoWay}" x:Name="RecordsList" ItemsSource="{Binding RecordedVideoSequences}" Height="168">
+				<ListBox.ItemTemplate>
+					<DataTemplate>
+						<StackPanel Orientation="Horizontal">
+							<TextBlock Text="{Binding Path}"/><TextBlock Text="-"/><TextBlock Text="{Binding RunTime}"/>
+						</StackPanel>
+					</DataTemplate>
+				</ListBox.ItemTemplate>
+			</ListBox>
+			<Button Content="+" x:Name="AddSelectedRecord" Input:CommandService.Command="ClickAddSelectedRecord"></Button>
     	</StackPanel>
 
     </Grid>
--- a/client/src/Iri.Modernisation.Controls/View/ProductionView/ProductionView.xaml.cs	Mon Dec 07 10:36:55 2009 +0100
+++ b/client/src/Iri.Modernisation.Controls/View/ProductionView/ProductionView.xaml.cs	Tue Dec 08 11:39:27 2009 +0100
@@ -20,6 +20,7 @@
             InitializeComponent();
             HeaderProductionElement.SelectedPart += Commands.ProductionTimeLine.EditorPartSelected.Execute;
             HeaderProductionElement.FinishedPart += Commands.ProductionTimeLine.EditorPartFinished.Execute;
+          
             //HeaderProductionElement.SelectedPart += new EventHandler<HeaderProductionEventArgs>(HeaderProductionElement_SelectedPart);
         }
 
--- a/client/src/Iri.Modernisation.Controls/ViewModel/ProductionTimeLine/ProductionTimeLineVM.cs	Mon Dec 07 10:36:55 2009 +0100
+++ b/client/src/Iri.Modernisation.Controls/ViewModel/ProductionTimeLine/ProductionTimeLineVM.cs	Tue Dec 08 11:39:27 2009 +0100
@@ -13,6 +13,7 @@
 using Iri.Modernisation.BaseMVVM.ViewModel;
 using Iri.Modernisation.Controls.View;
 using System.Collections.Generic;
+using SLExtensions.Collections.ObjectModel;
 namespace Iri.Modernisation.Controls.ViewModel
 {
     public class ProductionTimeLineVM : BaseMVVM.ViewModel.ViewModel
@@ -34,17 +35,31 @@
         }
 
         private VideoBook _newBook;
-        private List<VideoSequence>[] _listVideoSequences = new List<VideoSequence>[4];
-        public List<VideoSequence> SelectedVideoSequences
+        private ObservableCollection<VideoSequence>[] _listVideoSequences = new ObservableCollection<VideoSequence>[4];
+        public ObservableCollection<VideoSequence>[] ListVideoSequences
         {
             get
             {
+                return _listVideoSequences;
+            }
+            set
+            {
+                _listVideoSequences = value;
+                OnPropertyChanged("ListVideoSequences");
+            }
+        }
+        
+        public ObservableCollection<VideoSequence> SelectedVideoSequences
+        {
+            get
+            {
+                
                 return _listVideoSequences[SelectedChapter];
             }
             set
             {
                 _listVideoSequences[SelectedChapter] = value;
-                _newBook.Chapters[SelectedChapter].VideoSequences = value;
+                //_newBook.Chapters[SelectedChapter].VideoSequences = value;
                 OnPropertyChanged("SelectedVideoSequences");
             }
         }
@@ -115,16 +130,37 @@
         public ProductionTimeLineVM()
         {
             _newBook = new VideoBook();
-            
-            
+            _listVideoSequences = new ObservableCollection<VideoSequence>[4]
+            {
+                new ObservableCollection<VideoSequence>(),
+                new ObservableCollection<VideoSequence>(),
+                new ObservableCollection<VideoSequence>(),
+                new ObservableCollection<VideoSequence>()
+            };
+           // PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(ProductionTimeLineVM_PropertyChanged);
+           // SelectedVideoSequences = new ObservableCollection<VideoSequence>();
             Commands.ProductionTimeLine.EditorPartSelected.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(EditorPartSelected_Executed);
             Commands.ProductionTimeLine.EditorPartFinished.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(EditorPartFinished_Executed);
-            }
+            _listVideoSequences[0].CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(SelectedVideoSequences_CollectionChanged);
+            _listVideoSequences[1].CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(SelectedVideoSequences_CollectionChanged);
+            _listVideoSequences[2].CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(SelectedVideoSequences_CollectionChanged);
+            _listVideoSequences[3].CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(SelectedVideoSequences_CollectionChanged);
+      
+        }
+
+        void SelectedVideoSequences_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
+        {
+            Commands.ProductionView.VideoRecordUpdated.Execute();
+        }
+
+        void ProductionTimeLineVM_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
+        {
+            Commands.ProductionView.VideoRecordUpdated.Execute();
+        }
 
         void EditorPartFinished_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e)
         {
             SelectedChapter = -1;
-     
         }
 
         void EditorPartSelected_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e)
--- a/client/src/Iri.Modernisation.Controls/ViewModel/ProductionView/ProductionViewVM.cs	Mon Dec 07 10:36:55 2009 +0100
+++ b/client/src/Iri.Modernisation.Controls/ViewModel/ProductionView/ProductionViewVM.cs	Tue Dec 08 11:39:27 2009 +0100
@@ -11,10 +11,44 @@
 using Iri.Modernisation.BaseMVVM.Commands;
 using Iri.Modernisation.BaseMVVM.ViewModel;
 using Iri.Modernisation.Controls.View;
+using Iri.Modernisation.Data.Models;
+using System.Collections.ObjectModel;
+using System.Collections.Generic;
 namespace Iri.Modernisation.Controls.ViewModel
 {
     public class ProductionViewVM : BaseMVVM.ViewModel.ViewModel
     {
+
+        private VideoSequence _selectedVideoSequence;
+        public VideoSequence SelectedVideoSequence
+        {
+            get
+            {
+                return _selectedVideoSequence;
+            }
+            set
+            {
+                _selectedVideoSequence = value;
+                OnPropertyChanged("SelectedVideoSequence");
+               
+            }
+        }
+
+        private ObservableCollection<VideoSequence> _recordedVideoSequences;
+        public ObservableCollection<VideoSequence> RecordedVideoSequences
+        {
+            get
+            {
+                return _recordedVideoSequences;
+            }
+            set
+            {
+                _recordedVideoSequences = value;
+                OnPropertyChanged("RecordedVideoSequences");
+            }
+        }
+
+
         private HeaderProductionVM _headerProductionVM;
         public HeaderProductionVM ViewModelHeaderProduction
         {
@@ -44,11 +78,32 @@
         //SelectedChapter
         public ProductionViewVM()
         {
+            RecordedVideoSequences = new ObservableCollection<VideoSequence>();
             ViewModelHeaderProduction = new HeaderProductionVM();
             ViewModelProductionTimeLine = new ProductionTimeLineVM();
+            Commands.ProductionView.ClickAddSelectedRecord.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(ClickAddSelectedRecord_Executed);
+            Random rndNumbers = new Random();
+            for (int i = 0; i < 10; i++)
+            {
+         
+                _recordedVideoSequences.Add(new VideoSequence()
+                {
+                    Path="/Pouet/Record_"+rndNumbers.Next(10, 60),
+                    RunTime = new TimeSpan(0, rndNumbers.Next(10, 60), 0),
+                    BeginTrim = new TimeSpan(0, 0, 0),
+                    EndTrim = new TimeSpan(0, 0, 0),
+
+                });
+            }
            
         }
 
+        void ClickAddSelectedRecord_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e)
+        {
+            ViewModelProductionTimeLine.SelectedVideoSequences.Add(SelectedVideoSequence);
+           
+        }
+       
        
     }
 }
--- a/client/src/Iri.Modernisation.Lang/LangResource.Designer.cs	Mon Dec 07 10:36:55 2009 +0100
+++ b/client/src/Iri.Modernisation.Lang/LangResource.Designer.cs	Tue Dec 08 11:39:27 2009 +0100
@@ -124,6 +124,33 @@
         }
         
         /// <summary>
+        ///   Looks up a localized string similar to EditingLabel.
+        /// </summary>
+        public static string EditingLabel {
+            get {
+                return ResourceManager.GetString("EditingLabel", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to EnrichementLabel.
+        /// </summary>
+        public static string EnrichmentLabel {
+            get {
+                return ResourceManager.GetString("EnrichmentLabel", resourceCulture);
+            }
+        }
+        
+        /// <summary>
+        ///   Looks up a localized string similar to IndexingLabel.
+        /// </summary>
+        public static string IndexingLabel {
+            get {
+                return ResourceManager.GetString("IndexingLabel", resourceCulture);
+            }
+        }
+        
+        /// <summary>
         ///   Looks up a localized string similar to MenuDisplayAnnotation.
         /// </summary>
         public static string MenuDisplayAnnotations {
@@ -241,6 +268,15 @@
         }
         
         /// <summary>
+        ///   Looks up a localized string similar to RecordsLabel.
+        /// </summary>
+        public static string RecordsLabel {
+            get {
+                return ResourceManager.GetString("RecordsLabel", resourceCulture);
+            }
+        }
+        
+        /// <summary>
         ///   Looks up a localized string similar to ReferencesChutierTitle.
         /// </summary>
         public static string ReferencesChutierTitle {
--- a/client/src/Iri.Modernisation.Lang/LangResource.en-US.resx	Mon Dec 07 10:36:55 2009 +0100
+++ b/client/src/Iri.Modernisation.Lang/LangResource.en-US.resx	Tue Dec 08 11:39:27 2009 +0100
@@ -138,6 +138,15 @@
   <data name="DisplayLabel" xml:space="preserve">
     <value>Display</value>
   </data>
+  <data name="EditingLabel" xml:space="preserve">
+    <value>Editing</value>
+  </data>
+  <data name="EnrichmentLabel" xml:space="preserve">
+    <value>Enrichment</value>
+  </data>
+  <data name="IndexingLabel" xml:space="preserve">
+    <value>Indexing</value>
+  </data>
   <data name="MenuDisplayAnnotations" xml:space="preserve">
     <value>Display Annotations</value>
   </data>
@@ -177,6 +186,9 @@
   <data name="ProductionMenuUpdateLabel" xml:space="preserve">
     <value>Update</value>
   </data>
+  <data name="RecordsLabel" xml:space="preserve">
+    <value>Records</value>
+  </data>
   <data name="ReferencesChutierTitle" xml:space="preserve">
     <value>My References</value>
   </data>
--- a/client/src/Iri.Modernisation.Lang/LangResource.fr-FR.resx	Mon Dec 07 10:36:55 2009 +0100
+++ b/client/src/Iri.Modernisation.Lang/LangResource.fr-FR.resx	Tue Dec 08 11:39:27 2009 +0100
@@ -138,6 +138,15 @@
   <data name="DisplayLabel" xml:space="preserve">
     <value>Afficher</value>
   </data>
+  <data name="EditingLabel" xml:space="preserve">
+    <value>Edition</value>
+  </data>
+  <data name="EnrichmentLabel" xml:space="preserve">
+    <value>Enrichissement</value>
+  </data>
+  <data name="IndexingLabel" xml:space="preserve">
+    <value>Indexation</value>
+  </data>
   <data name="MenuDisplayAnnotations" xml:space="preserve">
     <value>Afficher Annotations</value>
   </data>
@@ -177,6 +186,9 @@
   <data name="ProductionMenuUpdateLabel" xml:space="preserve">
     <value>Modifier</value>
   </data>
+  <data name="RecordsLabel" xml:space="preserve">
+    <value>Enregistrements</value>
+  </data>
   <data name="ReferencesChutierTitle" xml:space="preserve">
     <value>Mes Références</value>
   </data>
--- a/client/src/Iri.Modernisation.Lang/LangResource.resx	Mon Dec 07 10:36:55 2009 +0100
+++ b/client/src/Iri.Modernisation.Lang/LangResource.resx	Tue Dec 08 11:39:27 2009 +0100
@@ -138,6 +138,15 @@
   <data name="DisplayLabel" xml:space="preserve">
     <value>DisplayLabel</value>
   </data>
+  <data name="EditingLabel" xml:space="preserve">
+    <value>EditingLabel</value>
+  </data>
+  <data name="EnrichmentLabel" xml:space="preserve">
+    <value>EnrichementLabel</value>
+  </data>
+  <data name="IndexingLabel" xml:space="preserve">
+    <value>IndexingLabel</value>
+  </data>
   <data name="MenuDisplayAnnotations" xml:space="preserve">
     <value>MenuDisplayAnnotation</value>
   </data>
@@ -177,6 +186,9 @@
   <data name="ProductionMenuUpdateLabel" xml:space="preserve">
     <value>ProductionMenuUpdateLabel</value>
   </data>
+  <data name="RecordsLabel" xml:space="preserve">
+    <value>RecordsLabel</value>
+  </data>
   <data name="ReferencesChutierTitle" xml:space="preserve">
     <value>ReferencesChutierTitle</value>
   </data>