public UCArbol(aerolineasEntities ent) { InitializeComponent(); aEnt = ent; serAviones = new ServicioAvion(aEnt); listaAviones = serAviones.getAll().ToList(); gridArbol.Children.Add(crearArbol()); }
private void inicializar() { serVuelos = new ServicioVuelos(aEnt); serAvion = new ServicioAvion(aEnt); serCiudades = new ServicioCiudades(aEnt); vuelo = new vuelos(); lista = new ListCollectionView(serVuelos.getAll().ToList()); vuelo.Dia = DateTime.Now; }