client/src/Iri.Modernisation.Controls/ViewModel/AnnotationMaker/AnnotationMakerVM.cs
changeset 43 7fa99f1c36a4
parent 42 594fdedecf7f
child 46 ab3057b82260
equal deleted inserted replaced
42:594fdedecf7f 43:7fa99f1c36a4
   341         private void OkClickAnnotationMaker_Executed(object sender, ExecutedEventArgs e)
   341         private void OkClickAnnotationMaker_Executed(object sender, ExecutedEventArgs e)
   342         {
   342         {
   343             _newAnnotation.Type = _selectedType ;
   343             _newAnnotation.Type = _selectedType ;
   344             _basicRelation.ToElement = _newAnnotation;
   344             _basicRelation.ToElement = _newAnnotation;
   345             _basicRelation.Type = _newAnnotation.Type;
   345             _basicRelation.Type = _newAnnotation.Type;
   346             _refElement.Chapter.Annotations.Add(_newAnnotation);
   346             _refElement.Chapter.Annotations.Add(new Annotation(_newAnnotation));
   347             _refElement.Chapter.Book.BasicLinks.Add(_basicRelation);
   347             _refElement.Chapter.Book.BasicLinks.Add(_basicRelation);
   348             if(_polemicRelation.ToElement != null)
   348             if(_polemicRelation.ToElement != null)
   349             {
   349             {
   350                 _refElement.Chapter.Book.PolemicLinks.Add(_polemicRelation);
   350                 _refElement.Chapter.Book.PolemicLinks.Add(_polemicRelation);
   351             }
   351             }