示例#1
0
 /// <summary>
 /// Internal Call to remove a sniffing Item from the List.
 /// </summary>
 /// <param name="item">Removed SnifferProperty of the Sniffing Item</param>
 internal void RemoveSnifferItem(SnifferProperty item)
 {
     if (snifferItems.Remove(item))
     {
         if (OnLostSnifferItem != null)
         {
             OnLostSnifferItem(item);
         }
     }
 }
示例#2
0
        /// <summary>
        /// Internal Call to add another Sniffer to the List.
        /// </summary>
        /// <param name="item">New SnifferProperty of the Sniffing Item</param>
        internal void AddSnifferItem(SnifferProperty item)
        {
            if (!snifferItems.Contains(item))
            {
                snifferItems.Add(item);

                if (OnNewSnifferItem != null)
                {
                    OnNewSnifferItem(item);
                }
            }
        }