Esempio 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));
                }
            }
        }
Esempio 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));
				}
			}
		}