comparison Agendas/trunk/src/Agendas.Google/DetailsEvents/EstudioGEventDetail.cs @ 198:cd96cfc8a1f5

Se agrega la fecha de termino a Google Calendar.
author alabra
date Mon, 15 Aug 2011 15:35:17 -0400
parents 2d02adb79322
children a6037c6c88d8
comparison
equal deleted inserted replaced
197:bfd472758bc3 198:cd96cfc8a1f5
21 21
22 public void Generate(Evento evento) 22 public void Generate(Evento evento)
23 { 23 {
24 Title = "Grupo de Estudio " + evento.Titulo; 24 Title = "Grupo de Estudio " + evento.Titulo;
25 Location = "http://snipr.com/virtualaltnet"; 25 Location = "http://snipr.com/virtualaltnet";
26 if (evento.FechaInicio != null) 26 StartEvent = evento.FechaInicio.Value;
27 StartEvent = new DateTime(evento.FechaInicio.Value.Year, evento.FechaInicio.Value.Month, evento.FechaInicio.Value.Day, 27 EndEvent = evento.FechaTermino.Value;
28 18, 0, 0, DateTimeKind.Utc);
29 EndEvent = StartEvent.AddHours(2);
30 28
31 var cultureInfo = new CultureInfo("es-ES", false).DateTimeFormat; 29 var cultureInfo = new CultureInfo("es-ES", false).DateTimeFormat;
32 30
33 Summary = TextoEstudio.Replace("[NOMBRE]", evento.Titulo). 31 Summary = TextoEstudio.Replace("[NOMBRE]", evento.Titulo).
34 Replace("[FECHA]", StartEvent.ToString("D", cultureInfo)). 32 Replace("[FECHA]", StartEvent.ToString("D", cultureInfo)).