private void Connections_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) { switch (e.Action) { case NotifyCollectionChangedAction.Add: foreach (CommandConnection item in e.NewItems) { _callbacksManager.UpdateApplicationIdentities(item); _callbacksManager.AddStackTrace(item); _callbacksManager.AddTrafficUrl(item); switch (item.Type) { case CommandConnectionType.Opened: _callbacksManager.CreateOrUpdateContext(item); break; case CommandConnectionType.Closed: _callbacksManager.UpdateConnectionsClosedTime(item); break; case CommandConnectionType.Disposed: _callbacksManager.SetConnectionAndContexAsDisposed(item); break; } _callbacksManager.UpdateThreadsList(item); } break; } }