comparison Agendas/trunk/src/Agendas.Domain/Evento.cs @ 229:33976aea7546

Varios Ponentes en calendario
author nelopauselli
date Wed, 28 Sep 2011 19:14:49 -0300
parents 11545cc95491
children e5959f3405e0
comparison
equal deleted inserted replaced
228:9f61e8555114 229:33976aea7546
247 var logs = new List<TrackLog>(); 247 var logs = new List<TrackLog>();
248 foreach (var track in _newTracks) 248 foreach (var track in _newTracks)
249 logs.AddRange(track.GetLogsNews()); 249 logs.AddRange(track.GetLogsNews());
250 return logs; 250 return logs;
251 } 251 }
252
253 public virtual string GetPonentesAsString(Func<Persona, string> predicate)
254 {
255 var nombres = Ponentes.Select(predicate.Invoke).ToArray();
256 string texto = string.Empty;
257 for (int i = 0; i < nombres.Length; i++)
258 {
259 var nombre = nombres[i];
260 if (i == nombres.Length - 1 && i>0)
261 texto += " y ";
262 else if (i != 0)
263 texto += ", ";
264 texto += nombre;
265 }
266 return texto;
267 }
252 } 268 }
253 } 269 }