Exemplo n.º 1
0
        private async void FillPlanesCollection()
        {
            var temp = await service.GetEntities();

            foreach (var item in temp)
            {
                Planes.Add(item);
            }
        }
Exemplo n.º 2
0
        private async void FillAdditionalCollections()
        {
            var flights = await FService.GetEntities();

            foreach (var item in flights)
            {
                Flights.Add(item);
            }

            var crews = await CService.GetEntities();

            foreach (var item in crews)
            {
                Crews.Add(item);
            }

            var planes = await PService.GetEntities();

            foreach (var item in planes)
            {
                Planes.Add(item);
            }
        }