comparison Agendas/trunk/src/Agendas.Google/DetailsEvents/VanGEventDetail.cs @ 229:33976aea7546

Varios Ponentes en calendario
author nelopauselli
date Wed, 28 Sep 2011 19:14:49 -0300
parents cd96cfc8a1f5
children e5959f3405e0
comparison
equal deleted inserted replaced
228:9f61e8555114 229:33976aea7546
1 using System; 1 using System;
2 using System.Collections.Generic;
2 using System.Globalization; 3 using System.Globalization;
4 using System.Linq;
3 using AltNetHispano.Agendas.Domain; 5 using AltNetHispano.Agendas.Domain;
4 6
5 namespace AltNetHispano.Agendas.Google.DetailsEvents 7 namespace AltNetHispano.Agendas.Google.DetailsEvents
6 { 8 {
7 public class VanGEventDetail : IGEventDetail 9 public class VanGEventDetail : IGEventDetail
27 StartEvent = evento.FechaInicio.Value; 29 StartEvent = evento.FechaInicio.Value;
28 EndEvent = evento.FechaTermino.Value; 30 EndEvent = evento.FechaTermino.Value;
29 var cultureInfo = new CultureInfo( "es-ES", false ).DateTimeFormat; 31 var cultureInfo = new CultureInfo( "es-ES", false ).DateTimeFormat;
30 32
31 Summary = TextoVan.Replace("[NOMBRE]", evento.Titulo). 33 Summary = TextoVan.Replace("[NOMBRE]", evento.Titulo).
32 Replace("[NOMBRE_EXPOSITOR]", evento.Ponente.Nombre). 34 Replace("[NOMBRE_EXPOSITOR]", evento.GetPonentesAsString(p => p.Nombre)).
33 Replace("[FECHA]", StartEvent.ToString("D", cultureInfo)). 35 Replace("[FECHA]", StartEvent.ToString("D", cultureInfo)).
34 Replace("[URL_DISCUCION]", evento.UrlInvitacion); 36 Replace("[URL_DISCUCION]", evento.UrlInvitacion);
35 } 37 }
36 } 38 }
37 } 39 }