コード例 #1
0
        public static void ClearProcessingQueue(bool cancelCurrentProcessing)
        {
            foreach (string path in c_queue.Select(h => h.FilePath))
            {
                c_loadedPaths.Remove(path);
            }
            c_queue.Clear();

            if (cancelCurrentProcessing)
            {
                if (IsProcessing)
                {
                    c_backgroundWorker.CancelAsync();
                }
            }
        }