client/src/Iri.Modernisation.Controls/ViewModel/ProductionEditor/ProductionEditorVM.cs
--- a/client/src/Iri.Modernisation.Controls/ViewModel/ProductionEditor/ProductionEditorVM.cs Mon Dec 14 09:56:55 2009 +0100
+++ b/client/src/Iri.Modernisation.Controls/ViewModel/ProductionEditor/ProductionEditorVM.cs Mon Dec 14 11:25:01 2009 +0100
@@ -118,10 +118,22 @@
public ProductionEditorVM()
{
+ InitializeCommands();
+ }
+ public ProductionEditorVM(VideoSequence Vs)
+ {
+ ViewModelVideoViewer = new VideoViewerVM(true, false)
+ {
+ Source = Vs.Path
+ };
+ InitializeCommands();
+ }
+ private void InitializeCommands()
+ {
+
Commands.ProductionTimeLine.IndexSelected.Executed += new EventHandler<SLExtensions.Input.ExecutedEventArgs>(IndexSelected_Executed);
}
-
void IndexSelected_Executed(object sender, SLExtensions.Input.ExecutedEventArgs e)
{
IsEditableIndex = (bool)e.Parameter;