client/src/Iri.Modernisation.Controls/ViewModel/AnnotationMaker/AnnotationMakerVM.cs
changeset 30 644e3cd48034
parent 28 2d4ec5ab2a40
child 34 4d9ebc6fbbe8
equal deleted inserted replaced
29:5f8d275750e7 30:644e3cd48034
    37             set
    37             set
    38             {
    38             {
    39                 _refElement = value;
    39                 _refElement = value;
    40 
    40 
    41                 _newAnnotation = new Annotation(((PolemicElement)value).Chapter);
    41                 _newAnnotation = new Annotation(((PolemicElement)value).Chapter);
    42                 Begin = ((PolemicElement)value).TimerIn.TotalMilliseconds;
    42                
    43                 End = ((PolemicElement)value).TimerOut.TotalMilliseconds;
       
    44                 BasicRelation = new PolemicLink() { FromElement = ((PolemicElement)value), ToElement = _newAnnotation, Type = null};
    43                 BasicRelation = new PolemicLink() { FromElement = ((PolemicElement)value), ToElement = _newAnnotation, Type = null};
    45                 PolemicRelation = new PolemicLink();
    44                 PolemicRelation = new PolemicLink();
    46                 PolemicRelation.FromElement = _newAnnotation;
    45                 PolemicRelation.FromElement = _newAnnotation;
    47                
    46                 Begin = ((PolemicElement)value).TimerIn.TotalMilliseconds;
       
    47                 End = ((PolemicElement)value).TimerOut.TotalMilliseconds;
    48                 OnPropertyChanged(String.Empty);
    48                 OnPropertyChanged(String.Empty);
    49                 //OnPropertyChanged("RefElement");
    49                 //OnPropertyChanged("RefElement");
    50                 //OnPropertyChanged("IsControlEnable");
    50                 //OnPropertyChanged("IsControlEnable");
    51                 
    51                 
    52             }
    52             }
   332         /// Constructeur par référence
   332         /// Constructeur par référence
   333         /// </summary>
   333         /// </summary>
   334         /// <param name="refAParam">Element référant</param>
   334         /// <param name="refAParam">Element référant</param>
   335         public AnnotationMakerVM(PolemicElement refAParam)
   335         public AnnotationMakerVM(PolemicElement refAParam)
   336         {
   336         {
   337 
       
   338 
       
   339             RefElement = refAParam;
   337             RefElement = refAParam;
   340 
       
   341 
       
   342 
       
   343             _newAnnotation = new Annotation(RefElement.Chapter);
   338             _newAnnotation = new Annotation(RefElement.Chapter);
   344             _begin = RefElement.TimerIn;
   339            
   345             _end = RefElement.TimerOut;
       
   346             _basicRelation = new PolemicLink() { FromElement = RefElement, ToElement = _newAnnotation, Type = null};
   340             _basicRelation = new PolemicLink() { FromElement = RefElement, ToElement = _newAnnotation, Type = null};
   347             _polemicRelation = new PolemicLink();
   341             _polemicRelation = new PolemicLink();
   348             PolemicRelation.FromElement = _newAnnotation;
   342             PolemicRelation.FromElement = _newAnnotation;
   349             InitializeCommands();
   343             InitializeCommands();
       
   344             Begin = RefElement.TimerIn.TotalMilliseconds;
       
   345             End = RefElement.TimerOut.TotalMilliseconds;
   350         }
   346         }
   351 
   347 
   352 
   348 
   353         public PolemicTypeDescription[] ListAnnotationDescription
   349         public PolemicTypeDescription[] ListAnnotationDescription
   354         {
   350         {