Пример #1
0
        /// <summary>
        ///
        /// </summary>
        public virtual void Unregister(int id, IBlobListener listener)
        {
            int i = points[id].listeners.IndexOf(listener);

            if (i != -1)
            {
                points[id].listeners.RemoveAt(i);
            }
        }
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        public virtual void Register(int id, IBlobListener listener)
        {
            int i = points[id].listeners.IndexOf(listener);

            if (i == -1)
            {
                points[id].listeners.Add(listener);
            }
        }