private void HeaderToolbar_BtnClick(object sender, StaticToolbarEventArgs e) { switch (e.ButtonNumber) { case 1: Details.Dispatcher.BeginInvoke(new Action(() => Application.ShowAuftragsSammlung())); break; case 2: Details.Dispatcher.BeginInvoke(new Action(() => Application.ShowKundenÜbersicht())); break; case 3: Details.Dispatcher.BeginInvoke(new Action(() => Application.ShowArtikelÜbersicht())); break; case 4: Details.Dispatcher.BeginInvoke(new Action(() => Application.ShowDokumentenÜbersicht())); break; case 5: Details.Dispatcher.BeginInvoke(new Action(() => Application.ShowGesendeteMails())); break; } }