client/src/Iri.Modernisation.Controls/ViewModel/AnnotationMaker/AnnotationMakerVM.cs
changeset 30 644e3cd48034
parent 28 2d4ec5ab2a40
child 34 4d9ebc6fbbe8
--- a/client/src/Iri.Modernisation.Controls/ViewModel/AnnotationMaker/AnnotationMakerVM.cs	Fri Jan 08 11:33:24 2010 +0100
+++ b/client/src/Iri.Modernisation.Controls/ViewModel/AnnotationMaker/AnnotationMakerVM.cs	Thu Jan 14 16:39:50 2010 +0100
@@ -39,12 +39,12 @@
                 _refElement = value;
 
                 _newAnnotation = new Annotation(((PolemicElement)value).Chapter);
-                Begin = ((PolemicElement)value).TimerIn.TotalMilliseconds;
-                End = ((PolemicElement)value).TimerOut.TotalMilliseconds;
+               
                 BasicRelation = new PolemicLink() { FromElement = ((PolemicElement)value), ToElement = _newAnnotation, Type = null};
                 PolemicRelation = new PolemicLink();
                 PolemicRelation.FromElement = _newAnnotation;
-               
+                Begin = ((PolemicElement)value).TimerIn.TotalMilliseconds;
+                End = ((PolemicElement)value).TimerOut.TotalMilliseconds;
                 OnPropertyChanged(String.Empty);
                 //OnPropertyChanged("RefElement");
                 //OnPropertyChanged("IsControlEnable");
@@ -334,19 +334,15 @@
         /// <param name="refAParam">Element référant</param>
         public AnnotationMakerVM(PolemicElement refAParam)
         {
-
-
             RefElement = refAParam;
-
-
-
             _newAnnotation = new Annotation(RefElement.Chapter);
-            _begin = RefElement.TimerIn;
-            _end = RefElement.TimerOut;
+           
             _basicRelation = new PolemicLink() { FromElement = RefElement, ToElement = _newAnnotation, Type = null};
             _polemicRelation = new PolemicLink();
             PolemicRelation.FromElement = _newAnnotation;
             InitializeCommands();
+            Begin = RefElement.TimerIn.TotalMilliseconds;
+            End = RefElement.TimerOut.TotalMilliseconds;
         }