The Dirndl is Bavarian Tracht (Tracht is traditional clothing mostly worn for festivities and ceremonies) and not related to the Tracht of the Black Forest.
They wear completely different dresses there. The Bollenhut is also an important part of the Schwarzwälder Tracht.