Fixed | pb d'affichage dans la liste des annotations (rafraichissement +
champs vide ? )
--- a/client/src/Iri.Modernisation.Controls/ViewModel/AnnotationMaker/AnnotationMakerVM.cs Thu Feb 11 17:29:23 2010 +0100
+++ b/client/src/Iri.Modernisation.Controls/ViewModel/AnnotationMaker/AnnotationMakerVM.cs Fri Feb 12 11:53:02 2010 +0100
@@ -343,7 +343,7 @@
_newAnnotation.Type = _selectedType ;
_basicRelation.ToElement = _newAnnotation;
_basicRelation.Type = _newAnnotation.Type;
- _refElement.Chapter.Annotations.Add(_newAnnotation);
+ _refElement.Chapter.Annotations.Add(new Annotation(_newAnnotation));
_refElement.Chapter.Book.BasicLinks.Add(_basicRelation);
if(_polemicRelation.ToElement != null)
{
--- a/client/src/Iri.Modernisation.Data/Models/Annotation.cs Thu Feb 11 17:29:23 2010 +0100
+++ b/client/src/Iri.Modernisation.Data/Models/Annotation.cs Fri Feb 12 11:53:02 2010 +0100
@@ -40,5 +40,10 @@
: base(Vc)
{
}
+ public Annotation(Annotation old) : base(old)
+ {
+ Type = old.Type;
+ Contributer = old.Contributer;
+ }
}
}
--- a/client/src/Iri.Modernisation.Data/Models/PolemicElement.cs Thu Feb 11 17:29:23 2010 +0100
+++ b/client/src/Iri.Modernisation.Data/Models/PolemicElement.cs Fri Feb 12 11:53:02 2010 +0100
@@ -72,7 +72,7 @@
/// <param name="copy">Element à copier</param>
public PolemicElement(PolemicElement copy): base(copy)
{
-
+ this.Id = copy.Id;
this.Title = copy.Title;
this.Description = copy.Description;
this.Tags = new List<String>(copy.Tags);