public static bool AddAll(ICollection source, LinkedList dest) { return dest.AddAll(source); }
private void DeletePair(Grid prev, Grid current) { LinkedList temp = new LinkedList(); temp.Add(prev); for (int i = 0; i < pcount; i++) { temp.AddAll(path[i]); path[i].Clear(); } AnimateThread thread = new AnimateThread(temp); thread.Tag = this; thread.Start(); }