private void AddHotSpots(ICollection <HotSpotInternal> hotSpots, TextBoxBase textBox) { if (_retrieveHotSpots != null) { RetrieveHotSpotsEventArgs retrieveHotSpots = new RetrieveHotSpotsEventArgs(textBox); _retrieveHotSpots.Invoke(this, retrieveHotSpots); foreach (HotSpot spot in retrieveHotSpots.HotSpots) { hotSpots.Add(new HotSpotInternal(spot, retrieveHotSpots.Color)); } } }
private void AddHotSpots(ICollection<HotSpotInternal> hotSpots, TextBoxBase textBox) { if (_retrieveHotSpots != null) { RetrieveHotSpotsEventArgs retrieveHotSpots = new RetrieveHotSpotsEventArgs(textBox); _retrieveHotSpots.Invoke(this, retrieveHotSpots); foreach (HotSpot spot in retrieveHotSpots.HotSpots) { hotSpots.Add(new HotSpotInternal(spot, retrieveHotSpots.Color)); } } }