public static void InitFolders() { Trace.Assert(InvokeHelper.Synchronizer != null); CollectionChangedWithInvoke = InvokeHelper.InvokeHandler(CollectionChanged); ConnectionsManager.XenConnections.CollectionChanged += XenConnections_CollectionChanged; foreach (IXenConnection connection in ConnectionsManager.XenConnectionsCopy) { AddConnection(connection); } }