From afe3e5cd656c3ee2fecbd16c25ff37ddca061fe6 Mon Sep 17 00:00:00 2001 From: Rene Evertz Date: Fri, 13 Mar 2026 14:45:56 +0100 Subject: [PATCH] AiDocu Button Popup Update --- BeWo/BeWo.csproj | 1 + BeWo/BeWoApp.xaml | 1 + BeWo/Converter/StringEmptyBoolConverter.cs | 28 ++++++++++++++ .../Controls/AI/AiPromptbausteinButton.xaml | 2 +- .../AI/AiPromptbausteinButton.xaml.cs | 37 +++++++++++++++---- .../Zeiterfassung/ServiceRecordView2.xaml | 13 ++----- .../ListViewModel/ServiceRecordListVM.cs | 4 +- 7 files changed, 67 insertions(+), 19 deletions(-) create mode 100644 BeWo/Converter/StringEmptyBoolConverter.cs diff --git a/BeWo/BeWo.csproj b/BeWo/BeWo.csproj index 34a5cc250..cf1c9e42d 100644 --- a/BeWo/BeWo.csproj +++ b/BeWo/BeWo.csproj @@ -106,6 +106,7 @@ + diff --git a/BeWo/BeWoApp.xaml b/BeWo/BeWoApp.xaml index 042c908b3..43aa8902a 100644 --- a/BeWo/BeWoApp.xaml +++ b/BeWo/BeWoApp.xaml @@ -86,6 +86,7 @@ + diff --git a/BeWo/Converter/StringEmptyBoolConverter.cs b/BeWo/Converter/StringEmptyBoolConverter.cs new file mode 100644 index 000000000..3bb495e3a --- /dev/null +++ b/BeWo/Converter/StringEmptyBoolConverter.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Data; + +namespace BeWo.Converter +{ + public class StringEmptyBoolConverter : IValueConverter + { + public object Convert(object value, Type targetType, object parameter, CultureInfo culture) + { + if (value is string stringi) + { + return !string.IsNullOrEmpty(stringi); + } + + return false; + } + + public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) + { + throw new NotImplementedException(); + } + } +} diff --git a/BeWo/View/Controls/AI/AiPromptbausteinButton.xaml b/BeWo/View/Controls/AI/AiPromptbausteinButton.xaml index d7d1203c9..df37ce2af 100644 --- a/BeWo/View/Controls/AI/AiPromptbausteinButton.xaml +++ b/BeWo/View/Controls/AI/AiPromptbausteinButton.xaml @@ -22,10 +22,10 @@