client/src/Iri.Modernisation.Controls/ViewModel/AnnotationMaker/AnnotationMakerVM.cs
equal
deleted
inserted
replaced
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 } |