Пример #1
0
        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;
        }
Пример #2
0
 public MainWindow()
 {
     InitializeComponent();
     this._eGestor = new EventoGestor();
     DataContext = _eGestor.Listar().ToList();
 }
Пример #3
0
 public ListaEventos()
 {
     InitializeComponent();
     var _eGestor = new EventoGestor();
     this.DataContext = _eGestor.Listar().ToList();
 }