Ejemplo n.º 1
0
        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));
                }
            }
        }
Ejemplo n.º 2
0
		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));
				}
			}
		}