53 End = ((PolemicElement)value).TimerOut.TotalMilliseconds; |
53 End = ((PolemicElement)value).TimerOut.TotalMilliseconds; |
54 } |
54 } |
55 OnPropertyChanged(String.Empty); |
55 OnPropertyChanged(String.Empty); |
56 //OnPropertyChanged("RefElement"); |
56 //OnPropertyChanged("RefElement"); |
57 //OnPropertyChanged("IsControlEnable"); |
57 //OnPropertyChanged("IsControlEnable"); |
|
58 Commands.AnnotationMaker.FixAnnotationTime.Execute(); |
58 |
59 |
59 } |
60 } |
60 } |
61 } |
61 |
62 |
62 /// <summary> |
63 /// <summary> |
479 /// Constructeur par référence |
480 /// Constructeur par référence |
480 /// </summary> |
481 /// </summary> |
481 /// <param name="refAParam">Element référant</param> |
482 /// <param name="refAParam">Element référant</param> |
482 public AnnotationMakerVM(PolemicElement refAParam) |
483 public AnnotationMakerVM(PolemicElement refAParam) |
483 { |
484 { |
484 RefElement = refAParam; |
485 InitializeCommands(); |
|
486 _refElement = refAParam; |
485 _newAnnotation = new Annotation(RefElement.Chapter); |
487 _newAnnotation = new Annotation(RefElement.Chapter); |
486 |
488 |
487 _basicRelation = new PolemicLink() { FromElement = RefElement, ToElement = _newAnnotation, Type = null}; |
489 _basicRelation = new PolemicLink() { FromElement = RefElement, ToElement = _newAnnotation, Type = null}; |
488 _polemicRelation = new PolemicLink(); |
490 _polemicRelation = new PolemicLink(); |
489 PolemicRelation.FromElement = _newAnnotation; |
491 _polemicRelation.FromElement = _newAnnotation; |
490 InitializeCommands(); |
492 |
491 Begin = RefElement.TimerIn.TotalMilliseconds; |
493 // _begin = RefElement.TimerIn; |
492 End = RefElement.TimerOut.TotalMilliseconds; |
494 // _end = RefElement.TimerOut; |
493 |
495 |
494 |
496 OnPropertyChanged(String.Empty); |
495 } |
497 } |
496 |
498 |
497 |
499 |
498 public PolemicTypeDescription[] ListAnnotationDescription |
500 public PolemicTypeDescription[] ListAnnotationDescription |
499 { |
501 { |