示例#1
0
        public async Task LoadDronesFromCore()
        {
            _drones.Clear();

            DronePost.DataModel.Drone[] arrTmpDrones = await _coreServiceClient.GetDronesAsync();

            foreach (var drone in arrTmpDrones)
            {
                _drones.Add(new Drone(drone, _messageHandler));
            }

            foreach (var drone in _drones)
            {
                HostDrone(drone);
            }
        }