diff --git a/BeWo/BeWo.csproj b/BeWo/BeWo.csproj index e721c24a9..dcb2f1b48 100644 --- a/BeWo/BeWo.csproj +++ b/BeWo/BeWo.csproj @@ -42,13 +42,13 @@ https://app.ownsoft.de/ de-DE BeWoPlaner - beyondSoft GmbH - 2.0.1.221 + ownSoft GmbH + 2.0.1.224 true publish.htm false true - 222 + 225 2.0.1.%2a false true @@ -455,6 +455,10 @@ MSBuild:Compile Designer + + MSBuild:Compile + Designer + MSBuild:Compile Designer @@ -1164,6 +1168,9 @@ SupportConceptGoalRatingView.xaml + + ExceptionMessageBoxWithSupportMail.xaml + HomeView.xaml diff --git a/BeWo/BeWoApp.xaml.cs b/BeWo/BeWoApp.xaml.cs index 4987aea08..a6f19ae5a 100644 --- a/BeWo/BeWoApp.xaml.cs +++ b/BeWo/BeWoApp.xaml.cs @@ -763,7 +763,23 @@ namespace BeWo { if (MainControl != null) { - MainControl.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (Action) (() => MainControl.ShowControlAsModalPopup(new ExceptionMessageBox(message, ex, showDetails)))); + + + + MainControl.Dispatcher.BeginInvoke(DispatcherPriority.Normal, (Action) (() => + { + UserControl exControl = null; + if (showDetails && BeWoApp.LoggedOnUser != null && BeWoApp.LoggedOnUser.HasRight(BS.Shared.UserRightType.Support_View)) + { + exControl = new ExceptionMessageBoxWithSupportMail(ex); + } + else + { + exControl = new ExceptionMessageBox(message, ex, showDetails); + } + + MainControl.ShowControlAsModalPopup(exControl); + })); } else if (LoginControl != null) { diff --git a/BeWo/MainControl.xaml b/BeWo/MainControl.xaml index 8c40b18fb..20728c592 100644 --- a/BeWo/MainControl.xaml +++ b/BeWo/MainControl.xaml @@ -309,7 +309,7 @@ - (); diff --git a/BeWo/View/ExceptionMessageBox.xaml b/BeWo/View/ExceptionMessageBox.xaml index c603e00c9..f2dc7a2f3 100644 --- a/BeWo/View/ExceptionMessageBox.xaml +++ b/BeWo/View/ExceptionMessageBox.xaml @@ -27,7 +27,6 @@ -