public static void Remove(int index, Aligned <Gfx2D> tiles) { Gfx2D g = tiles[index]; Codes.Remove(g); tiles.RemoveAt(index); }
public static void Swap(int index, Aligned <Gfx2D> From, Aligned <Gfx2D> To) { Gfx2D g = From[index]; From.RemoveAt(index); To.Add(g); Sort(); }