diff -r b51a10574e7f -r 594fdedecf7f client/src/Iri.Modernisation.Controls/ViewModel/AnnotationMaker/AnnotationMakerVM.cs --- a/client/src/Iri.Modernisation.Controls/ViewModel/AnnotationMaker/AnnotationMakerVM.cs Wed Feb 10 14:56:46 2010 +0100 +++ b/client/src/Iri.Modernisation.Controls/ViewModel/AnnotationMaker/AnnotationMakerVM.cs Thu Feb 11 17:29:23 2010 +0100 @@ -149,7 +149,17 @@ public String Title { get - { return _title; } + { + if (_title != String.Empty) + { + return _title; + } + else + { + return "+Ajouter un titre"; + + } + } set { _title = value; @@ -167,7 +177,14 @@ { get { - return _description; + if(_description != String.Empty) + { + return _description; + } + else + { + return "+Ajouter Description"; + } } set { @@ -189,14 +206,17 @@ { get { - try + if(_tags.Count !=0 || _tags!=null) { return String.Join(",", _tags.ToArray()); } - catch + else { - return String.Empty; + return "+Ajouter Tag"; } + + + } set { @@ -404,23 +424,24 @@ helper.ResponseComplete += new HttpResponseCompleteEventHandler(helper_ResponseComplete); helper.Execute(); - - /* HttpSendHelper hsh = new HttpSendHelper("POST", FactoryVideoLivre.UpdateBookService, - new Dictionary { - { "ldtIs", "world" }, - {"AnnotationLdtFile",newfile.ToString()} - }); - hsh.Execute();*/ + - /** Local Mode **/ + Commands.AnnotationMaker.NewAnnotationFinished.Execute(_newAnnotation,_refElement); /********/ _refElement = null; + Title = String.Empty; + Description = String.Empty; + Tags = String.Empty; + BasicRelation = null; + PolemicRelation = null; + OnPropertyChanged("IsControlEnable"); + } @@ -469,6 +490,8 @@ InitializeCommands(); Begin = RefElement.TimerIn.TotalMilliseconds; End = RefElement.TimerOut.TotalMilliseconds; + + }