Triangle: add class member function and add triangles list. DrawPane: fixed some functional.