| changeset 42 | 594fdedecf7f |
| parent 39 | 0f2bde8fdfeb |
| child 43 | 7fa99f1c36a4 |
| 41:b51a10574e7f | 42:594fdedecf7f |
|---|---|
147 /// Titre de l'annotation |
147 /// Titre de l'annotation |
148 /// </summary> |
148 /// </summary> |
149 public String Title |
149 public String Title |
150 { |
150 { |
151 get |
151 get |
152 { return _title; } |
152 { |
153 if (_title != String.Empty) |
|
154 { |
|
155 return _title; |
|
156 } |
|
157 else |
|
158 { |
|
159 return "+Ajouter un titre"; |
|
160 |
|
161 } |
|
162 } |
|
153 set |
163 set |
154 { |
164 { |
155 _title = value; |
165 _title = value; |
156 _newAnnotation.Title = value; |
166 _newAnnotation.Title = value; |
157 OnPropertyChanged("Title"); |
167 OnPropertyChanged("Title"); |
165 /// </summary> |
175 /// </summary> |
166 public String Description |
176 public String Description |
167 { |
177 { |
168 get |
178 get |
169 { |
179 { |
170 return _description; |
180 if(_description != String.Empty) |
181 { |
|
182 return _description; |
|
183 } |
|
184 else |
|
185 { |
|
186 return "+Ajouter Description"; |
|
187 } |
|
171 } |
188 } |
172 set |
189 set |
173 { |
190 { |
174 _description = value; |
191 _description = value; |
175 _newAnnotation.Description = value; |
192 _newAnnotation.Description = value; |
187 /// </summary> |
204 /// </summary> |
188 public String Tags |
205 public String Tags |
189 { |
206 { |
190 get |
207 get |
191 { |
208 { |
192 try |
209 if(_tags.Count !=0 || _tags!=null) |
193 { |
210 { |
194 return String.Join(",", _tags.ToArray()); |
211 return String.Join(",", _tags.ToArray()); |
195 } |
212 } |
196 catch |
213 else |
197 { |
214 { |
198 return String.Empty; |
215 return "+Ajouter Tag"; |
199 } |
216 } |
217 |
|
218 |
|
219 |
|
200 } |
220 } |
201 set |
221 set |
202 { |
222 { |
203 String val = (String)value; |
223 String val = (String)value; |
204 _tags = val.Split(',').ToList(); |
224 _tags = val.Split(',').ToList(); |
402 )), |
422 )), |
403 new KeyValuePair<String,String>("ldtFileURI",_refElement.Chapter.Book.LdtPath)); |
423 new KeyValuePair<String,String>("ldtFileURI",_refElement.Chapter.Book.LdtPath)); |
404 helper.ResponseComplete += new HttpResponseCompleteEventHandler(helper_ResponseComplete); |
424 helper.ResponseComplete += new HttpResponseCompleteEventHandler(helper_ResponseComplete); |
405 helper.Execute(); |
425 helper.Execute(); |
406 |
426 |
407 |
427 |
408 /* HttpSendHelper hsh = new HttpSendHelper("POST", FactoryVideoLivre.UpdateBookService, |
428 |
409 new Dictionary<String, String> { |
429 |
410 { "ldtIs", "world" }, |
430 |
411 {"AnnotationLdtFile",newfile.ToString()} |
|
412 }); |
|
413 hsh.Execute();*/ |
|
414 |
|
415 |
|
416 /** Local Mode **/ |
|
417 Commands.AnnotationMaker.NewAnnotationFinished.Execute(_newAnnotation,_refElement); |
431 Commands.AnnotationMaker.NewAnnotationFinished.Execute(_newAnnotation,_refElement); |
418 |
432 |
419 /********/ |
433 /********/ |
420 |
434 |
421 |
435 |
422 _refElement = null; |
436 _refElement = null; |
437 Title = String.Empty; |
|
438 Description = String.Empty; |
|
439 Tags = String.Empty; |
|
440 BasicRelation = null; |
|
441 PolemicRelation = null; |
|
442 |
|
423 OnPropertyChanged("IsControlEnable"); |
443 OnPropertyChanged("IsControlEnable"); |
444 |
|
424 |
445 |
425 } |
446 } |
426 |
447 |
427 private String _sendAnnotationResponse; |
448 private String _sendAnnotationResponse; |
428 public String SendAnnotationResponse |
449 public String SendAnnotationResponse |
467 _polemicRelation = new PolemicLink(); |
488 _polemicRelation = new PolemicLink(); |
468 PolemicRelation.FromElement = _newAnnotation; |
489 PolemicRelation.FromElement = _newAnnotation; |
469 InitializeCommands(); |
490 InitializeCommands(); |
470 Begin = RefElement.TimerIn.TotalMilliseconds; |
491 Begin = RefElement.TimerIn.TotalMilliseconds; |
471 End = RefElement.TimerOut.TotalMilliseconds; |
492 End = RefElement.TimerOut.TotalMilliseconds; |
493 |
|
494 |
|
472 } |
495 } |
473 |
496 |
474 |
497 |
475 public PolemicTypeDescription[] ListAnnotationDescription |
498 public PolemicTypeDescription[] ListAnnotationDescription |
476 { |
499 { |