private void RemoveHiveFromMap(Hive deletedHive) { foreach (var item in Pins.ToList()) { if (item.Label == deletedHive.HiveName) { Pins.Remove(item); } } }
protected void RemoveAllPins() { Pins.ToList().ForEach(pin => RemovePin(pin)); }