Пример #1
0
        internal void fireIndexChanged()
        {
            var @event = new IndexChangedEventArgs(this);
            List <RepositoryListener> all;

            lock (listeners)
            {
                all = new List <RepositoryListener>(listeners);
            }
            lock (allListeners)
            {
                all.AddRange(allListeners);
            }
            foreach (RepositoryListener l in all)
            {
                l.indexChanged(@event);
            }
        }
Пример #2
0
 internal void fireIndexChanged()
 {
     var @event = new IndexChangedEventArgs(this);
     List<RepositoryListener> all;
     lock (listeners)
     {
         all = new List<RepositoryListener>(listeners);
     }
     lock (allListeners)
     {
         all.AddRange(allListeners);
     }
     foreach (RepositoryListener l in all)
     {
         l.indexChanged(@event);
     }
 }