// protected void HandleUpdatedDevice(UPnPSmartControlPoint sender, UPnPDevice device) // { // MessageBox.Show("Updated: " + device.FriendlyName); // } protected void HandleExpiredDevice(UPnPSmartControlPoint sender, UPnPDevice device) { int cnt = UPnpRoot.Nodes.Count; for (int x = 0; x < cnt; ++x) { if (UPnpRoot.Nodes[x].Tag.GetHashCode() == device.GetHashCode()) { UPnpRoot.Nodes.RemoveAt(x); break; } } MessageBox.Show("Expired: " + device.FriendlyName); }