client/src/Iri.Modernisation.Controls/ViewModel/AnnotationMaker/AnnotationMakerVM.cs
changeset 46 ab3057b82260
parent 43 7fa99f1c36a4
--- a/client/src/Iri.Modernisation.Controls/ViewModel/AnnotationMaker/AnnotationMakerVM.cs	Fri Feb 12 12:24:46 2010 +0100
+++ b/client/src/Iri.Modernisation.Controls/ViewModel/AnnotationMaker/AnnotationMakerVM.cs	Fri Feb 12 15:57:01 2010 +0100
@@ -55,6 +55,7 @@
                 OnPropertyChanged(String.Empty);
                 //OnPropertyChanged("RefElement");
                 //OnPropertyChanged("IsControlEnable");
+                Commands.AnnotationMaker.FixAnnotationTime.Execute();
                 
             }
         }
@@ -481,17 +482,18 @@
         /// <param name="refAParam">Element référant</param>
         public AnnotationMakerVM(PolemicElement refAParam)
         {
-            RefElement = refAParam;
+            InitializeCommands();
+            _refElement = refAParam;
             _newAnnotation = new Annotation(RefElement.Chapter);
            
             _basicRelation = new PolemicLink() { FromElement = RefElement, ToElement = _newAnnotation, Type = null};
             _polemicRelation = new PolemicLink();
-            PolemicRelation.FromElement = _newAnnotation;
-            InitializeCommands();
-            Begin = RefElement.TimerIn.TotalMilliseconds;
-            End = RefElement.TimerOut.TotalMilliseconds;
-       
-           
+            _polemicRelation.FromElement = _newAnnotation;
+        
+           // _begin = RefElement.TimerIn;
+           // _end = RefElement.TimerOut;
+
+            OnPropertyChanged(String.Empty);
         }