comparison Agendas/trunk/src/Agendas.Google/DetailsEvents/CafeGEventDetail.cs @ 185:2d02adb79322

Se agrega fecha de termino de un Evento y se incluye la hora a la fecha de inicio. Se modifica la propiedad Fecha del Evento, renombrandola FechaInicio. En el ModelView se agrega propiedades Duración y Hora del Evento cuando es Modificado, Nuevo y Agendado. Las fechas ingresadas son creadas en sistema UTC Queda pendiente Agregar duración a Google Calendar.
author alabra
date Tue, 09 Aug 2011 01:04:27 -0400
parents 80156ae1493f
children cd96cfc8a1f5
comparison
equal deleted inserted replaced
184:2a336a6a76b5 185:2d02adb79322
21 21
22 public void Generate(Evento evento) 22 public void Generate(Evento evento)
23 { 23 {
24 Title = "Alt.Net Café " + evento.Titulo; 24 Title = "Alt.Net Café " + evento.Titulo;
25 Location = "http://snipr.com/virtualaltnet"; 25 Location = "http://snipr.com/virtualaltnet";
26 if (evento.Fecha != null) 26 if (evento.FechaInicio != null)
27 StartEvent = new DateTime(evento.Fecha.Value.Year, evento.Fecha.Value.Month, evento.Fecha.Value.Day, 27 StartEvent = new DateTime(evento.FechaInicio.Value.Year, evento.FechaInicio.Value.Month, evento.FechaInicio.Value.Day,
28 18, 0, 0, DateTimeKind.Utc); 28 18, 0, 0, DateTimeKind.Utc);
29 EndEvent = StartEvent.AddHours(2); 29 EndEvent = StartEvent.AddHours(2);
30 30
31 var cultureInfo = new CultureInfo("es-ES", false).DateTimeFormat; 31 var cultureInfo = new CultureInfo("es-ES", false).DateTimeFormat;
32 32