public static void DisposeAll() { lock (dcList) { while (dcList.Count > 0) { dcList[0].Dispose(); } } }