From a4049e488a35bf851941087d05e85c81c6a0739d Mon Sep 17 00:00:00 2001 From: Rene Evertz Date: Thu, 6 Feb 2025 15:16:00 +0100 Subject: [PATCH] KTDReaderGUI Init + BeWo.Styles seperates Projekt -> Eigene Testanwendungen --- .gitignore | 4 + BeWo.Styles/BeWo.Styles.csproj | 134 +++++++++++++++ BeWo.Styles/Colors/Colors.xaml | 10 ++ BeWo.Styles/ControlStyles/ButtonStyles.xaml | 153 +++++++++++++++++ BeWo.Styles/ControlStyles/CheckBoxStyles.xaml | 7 + BeWo.Styles/ControlStyles/ComboBoxStyles.xaml | 161 ++++++++++++++++++ .../ControlStyles/CustomControlsStyles.xaml | 1 + BeWo.Styles/ControlStyles/DateEditStyles.xaml | 74 ++++++++ BeWo.Styles/ControlStyles/GroupBoxStyles.xaml | 52 ++++++ BeWo.Styles/ControlStyles/LabelStyles.xaml | 19 +++ BeWo.Styles/ControlStyles/ListBoxStyles.xaml | 27 +++ .../ControlStyles/NullItemComboBoxStyles.xaml | 148 ++++++++++++++++ .../ControlStyles/RadioButtonStyles.xaml | 7 + BeWo.Styles/ControlStyles/TextBoxStyles.xaml | 71 ++++++++ BeWo.Styles/ControlStyles/TextEditStyles.xaml | 76 +++++++++ .../ControlStyles/ToggleButtonStyles.xaml | 149 ++++++++++++++++ .../Converters/EnumTranslationConverter.cs | 37 ++++ .../DataTemplates/ControlTemplates.xaml | 92 ++++++++++ BeWo.Styles/DataTemplates/DataTemplates.xaml | 4 + BeWo.Styles/ModernOrangeBlack.xaml | 41 +++++ BeWo.Styles/Properties/AssemblyInfo.cs | 36 ++++ BeWoDakota.sln | 17 ++ Dakota/Dakota.csproj | 24 ++- Tools/KTDReaderGUI/KTDReaderGUI.sln | 31 ++++ Tools/KTDReaderGUI/KTDReaderGUI/App.config | 6 + Tools/KTDReaderGUI/KTDReaderGUI/App.xaml | 8 + Tools/KTDReaderGUI/KTDReaderGUI/App.xaml.cs | 17 ++ .../KTDReaderGUI/KTDReaderGUI.csproj | 98 +++++++++++ .../KTDReaderGUI/KTDReaderGUI/MainWindow.xaml | 27 +++ .../KTDReaderGUI/MainWindow.xaml.cs | 28 +++ .../KTDReaderGUI/Properties/AssemblyInfo.cs | 55 ++++++ .../Properties/Resources.Designer.cs | 70 ++++++++ .../KTDReaderGUI/Properties/Resources.resx | 117 +++++++++++++ .../Properties/Settings.Designer.cs | 29 ++++ .../KTDReaderGUI/Properties/Settings.settings | 7 + 35 files changed, 1831 insertions(+), 6 deletions(-) create mode 100644 BeWo.Styles/BeWo.Styles.csproj create mode 100644 BeWo.Styles/Colors/Colors.xaml create mode 100644 BeWo.Styles/ControlStyles/ButtonStyles.xaml create mode 100644 BeWo.Styles/ControlStyles/CheckBoxStyles.xaml create mode 100644 BeWo.Styles/ControlStyles/ComboBoxStyles.xaml create mode 100644 BeWo.Styles/ControlStyles/CustomControlsStyles.xaml create mode 100644 BeWo.Styles/ControlStyles/DateEditStyles.xaml create mode 100644 BeWo.Styles/ControlStyles/GroupBoxStyles.xaml create mode 100644 BeWo.Styles/ControlStyles/LabelStyles.xaml create mode 100644 BeWo.Styles/ControlStyles/ListBoxStyles.xaml create mode 100644 BeWo.Styles/ControlStyles/NullItemComboBoxStyles.xaml create mode 100644 BeWo.Styles/ControlStyles/RadioButtonStyles.xaml create mode 100644 BeWo.Styles/ControlStyles/TextBoxStyles.xaml create mode 100644 BeWo.Styles/ControlStyles/TextEditStyles.xaml create mode 100644 BeWo.Styles/ControlStyles/ToggleButtonStyles.xaml create mode 100644 BeWo.Styles/Converters/EnumTranslationConverter.cs create mode 100644 BeWo.Styles/DataTemplates/ControlTemplates.xaml create mode 100644 BeWo.Styles/DataTemplates/DataTemplates.xaml create mode 100644 BeWo.Styles/ModernOrangeBlack.xaml create mode 100644 BeWo.Styles/Properties/AssemblyInfo.cs create mode 100644 Tools/KTDReaderGUI/KTDReaderGUI.sln create mode 100644 Tools/KTDReaderGUI/KTDReaderGUI/App.config create mode 100644 Tools/KTDReaderGUI/KTDReaderGUI/App.xaml create mode 100644 Tools/KTDReaderGUI/KTDReaderGUI/App.xaml.cs create mode 100644 Tools/KTDReaderGUI/KTDReaderGUI/KTDReaderGUI.csproj create mode 100644 Tools/KTDReaderGUI/KTDReaderGUI/MainWindow.xaml create mode 100644 Tools/KTDReaderGUI/KTDReaderGUI/MainWindow.xaml.cs create mode 100644 Tools/KTDReaderGUI/KTDReaderGUI/Properties/AssemblyInfo.cs create mode 100644 Tools/KTDReaderGUI/KTDReaderGUI/Properties/Resources.Designer.cs create mode 100644 Tools/KTDReaderGUI/KTDReaderGUI/Properties/Resources.resx create mode 100644 Tools/KTDReaderGUI/KTDReaderGUI/Properties/Settings.Designer.cs create mode 100644 Tools/KTDReaderGUI/KTDReaderGUI/Properties/Settings.settings diff --git a/.gitignore b/.gitignore index 5a83c9164..0978652d6 100644 --- a/.gitignore +++ b/.gitignore @@ -645,5 +645,9 @@ obj /ReportImp/demo_Sozio/SoziotherapieRechnung.cs /ReportImp/demo_Sozio/SoziotherapieRechnung.resx /ReportImp/demo_Sozio/demo_Sozio.csproj + /BeWo/DebugConfig.txt /logs/mobilelog.txt +/BeWo.Styles/bin +/BeWo.Styles/obj +/Tools/KTDReaderGUI/.vs* \ No newline at end of file diff --git a/BeWo.Styles/BeWo.Styles.csproj b/BeWo.Styles/BeWo.Styles.csproj new file mode 100644 index 000000000..4872bf966 --- /dev/null +++ b/BeWo.Styles/BeWo.Styles.csproj @@ -0,0 +1,134 @@ + + + + + Debug + AnyCPU + {9BAB16DE-E284-4B57-BD09-763FC5CE521A} + Library + Properties + BeWo.Styles + BeWo.Styles + v4.5.2 + 512 + true + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + + + {d5e53b0f-bf5a-41e8-93e2-0f32845fc729} + Controls + + + {2f50b83d-a3f0-4ec4-979a-3f9b7e3d8ed4} + Shared + + + + \ No newline at end of file diff --git a/BeWo.Styles/Colors/Colors.xaml b/BeWo.Styles/Colors/Colors.xaml new file mode 100644 index 000000000..af79deddd --- /dev/null +++ b/BeWo.Styles/Colors/Colors.xaml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/BeWo.Styles/ControlStyles/ButtonStyles.xaml b/BeWo.Styles/ControlStyles/ButtonStyles.xaml new file mode 100644 index 000000000..5e01c9139 --- /dev/null +++ b/BeWo.Styles/ControlStyles/ButtonStyles.xaml @@ -0,0 +1,153 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/BeWo.Styles/ControlStyles/CheckBoxStyles.xaml b/BeWo.Styles/ControlStyles/CheckBoxStyles.xaml new file mode 100644 index 000000000..9a8a06781 --- /dev/null +++ b/BeWo.Styles/ControlStyles/CheckBoxStyles.xaml @@ -0,0 +1,7 @@ + + + \ No newline at end of file diff --git a/BeWo.Styles/ControlStyles/ComboBoxStyles.xaml b/BeWo.Styles/ControlStyles/ComboBoxStyles.xaml new file mode 100644 index 000000000..f935b3b8f --- /dev/null +++ b/BeWo.Styles/ControlStyles/ComboBoxStyles.xaml @@ -0,0 +1,161 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/BeWo.Styles/ControlStyles/CustomControlsStyles.xaml b/BeWo.Styles/ControlStyles/CustomControlsStyles.xaml new file mode 100644 index 000000000..b43065eec --- /dev/null +++ b/BeWo.Styles/ControlStyles/CustomControlsStyles.xaml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/BeWo.Styles/ControlStyles/DateEditStyles.xaml b/BeWo.Styles/ControlStyles/DateEditStyles.xaml new file mode 100644 index 000000000..9a7c7a5c7 --- /dev/null +++ b/BeWo.Styles/ControlStyles/DateEditStyles.xaml @@ -0,0 +1,74 @@ + + + + + + + + + \ No newline at end of file diff --git a/BeWo.Styles/ControlStyles/GroupBoxStyles.xaml b/BeWo.Styles/ControlStyles/GroupBoxStyles.xaml new file mode 100644 index 000000000..fa4852bd1 --- /dev/null +++ b/BeWo.Styles/ControlStyles/GroupBoxStyles.xaml @@ -0,0 +1,52 @@ + + + + \ No newline at end of file diff --git a/BeWo.Styles/ControlStyles/LabelStyles.xaml b/BeWo.Styles/ControlStyles/LabelStyles.xaml new file mode 100644 index 000000000..5e6432acc --- /dev/null +++ b/BeWo.Styles/ControlStyles/LabelStyles.xaml @@ -0,0 +1,19 @@ + + + + + \ No newline at end of file diff --git a/BeWo.Styles/ControlStyles/ListBoxStyles.xaml b/BeWo.Styles/ControlStyles/ListBoxStyles.xaml new file mode 100644 index 000000000..db8eee48f --- /dev/null +++ b/BeWo.Styles/ControlStyles/ListBoxStyles.xaml @@ -0,0 +1,27 @@ + + + + + + + \ No newline at end of file diff --git a/BeWo.Styles/ControlStyles/NullItemComboBoxStyles.xaml b/BeWo.Styles/ControlStyles/NullItemComboBoxStyles.xaml new file mode 100644 index 000000000..603a56e11 --- /dev/null +++ b/BeWo.Styles/ControlStyles/NullItemComboBoxStyles.xaml @@ -0,0 +1,148 @@ + + + + + + + \ No newline at end of file diff --git a/BeWo.Styles/ControlStyles/RadioButtonStyles.xaml b/BeWo.Styles/ControlStyles/RadioButtonStyles.xaml new file mode 100644 index 000000000..70e0a0711 --- /dev/null +++ b/BeWo.Styles/ControlStyles/RadioButtonStyles.xaml @@ -0,0 +1,7 @@ + + + + \ No newline at end of file diff --git a/BeWo.Styles/ControlStyles/TextBoxStyles.xaml b/BeWo.Styles/ControlStyles/TextBoxStyles.xaml new file mode 100644 index 000000000..65b641174 --- /dev/null +++ b/BeWo.Styles/ControlStyles/TextBoxStyles.xaml @@ -0,0 +1,71 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/BeWo.Styles/ControlStyles/TextEditStyles.xaml b/BeWo.Styles/ControlStyles/TextEditStyles.xaml new file mode 100644 index 000000000..f6c7d656b --- /dev/null +++ b/BeWo.Styles/ControlStyles/TextEditStyles.xaml @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/BeWo.Styles/ControlStyles/ToggleButtonStyles.xaml b/BeWo.Styles/ControlStyles/ToggleButtonStyles.xaml new file mode 100644 index 000000000..1829f1fff --- /dev/null +++ b/BeWo.Styles/ControlStyles/ToggleButtonStyles.xaml @@ -0,0 +1,149 @@ + + + \ No newline at end of file diff --git a/BeWo.Styles/Converters/EnumTranslationConverter.cs b/BeWo.Styles/Converters/EnumTranslationConverter.cs new file mode 100644 index 000000000..f8293c6fc --- /dev/null +++ b/BeWo.Styles/Converters/EnumTranslationConverter.cs @@ -0,0 +1,37 @@ +using BS.Shared.Core; +using System; +using System.Globalization; +using System.Windows.Data; + +namespace BeWo.Styles.Converters +{ + public class EnumTranslationConverter : IValueConverter + { + public object Convert(object value, Type targetType, object parameter, CultureInfo culture) + { + if (value is Enum e) + { + if (EnumTranslations.Wohnhilfe2Translation.TryGetValue(e, out string v)) + { + return v; + } + // RE: + // EnumTranslationConverter, aber betrachtet nicht alle? + // Brauche hier eig nur EnumTranslations.Gkv2Translation + if (EnumTranslations.AllTranslations.TryGetValue(e, out string vv)) + { + return vv; + } + + return e; + } + + return null; + } + + public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) + { + throw new NotImplementedException(); + } + } +} diff --git a/BeWo.Styles/DataTemplates/ControlTemplates.xaml b/BeWo.Styles/DataTemplates/ControlTemplates.xaml new file mode 100644 index 000000000..c80f0ce16 --- /dev/null +++ b/BeWo.Styles/DataTemplates/ControlTemplates.xaml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/BeWo.Styles/DataTemplates/DataTemplates.xaml b/BeWo.Styles/DataTemplates/DataTemplates.xaml new file mode 100644 index 000000000..e1a69a1f9 --- /dev/null +++ b/BeWo.Styles/DataTemplates/DataTemplates.xaml @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/BeWo.Styles/ModernOrangeBlack.xaml b/BeWo.Styles/ModernOrangeBlack.xaml new file mode 100644 index 000000000..20f5b9e85 --- /dev/null +++ b/BeWo.Styles/ModernOrangeBlack.xaml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + +