public List<Evento> Listar() { List<Evento> _lista = new List<Evento>(); EventoGestor _eGestor = new EventoGestor(); foreach (EventoDTO _eDTO in _eGestor.Listar().ToList()) { _lista.Add(DTOaEvento(_eDTO)); } return _lista; }
public MainWindow() { InitializeComponent(); this._eGestor = new EventoGestor(); DataContext = _eGestor.Listar().ToList(); }
public ListaEventos() { InitializeComponent(); var _eGestor = new EventoGestor(); this.DataContext = _eGestor.Listar().ToList(); }