Exemplo n.º 1
0
        private bool UpdateDrone(DroneEntry entry)
        {
            for (int i = 0; i < foundDrones.Count; i++)
            {
                DroneEntry e = foundDrones[i];
                if (e.Address.Equals(entry.Address))
                {
                    foundDrones[i] = DroneEntry.UpdateEntry(entry);

                    if (!e.Equals(entry))
                    {
                        InvokeEvent();
                    }
                    return(true);
                }
            }
            return(false);
        }