示例#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));
                }
            }
        }
示例#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));
				}
			}
		}