A new approach to differential calculus in locally convex spaces