From 0dad7ba59950198f6c171bfce185e9e81953f926 Mon Sep 17 00:00:00 2001 From: Rene Evertz Date: Wed, 18 Sep 2024 17:29:12 +0200 Subject: [PATCH 01/22] Style --- BeWo/DebugConfig.cs | 2 +- .../Wohnhilfe/CustomerWohnhilfeControl.xaml | 53 +++++++++--------- .../CustomerWohnhilfeControl.xaml.cs | 6 -- .../Detail/CustomerVermittlungArbeitView.xaml | 56 +++++++++++-------- BeWo/View/Detail/CustomerWohnhilfeView.xaml | 6 +- 5 files changed, 62 insertions(+), 61 deletions(-) diff --git a/BeWo/DebugConfig.cs b/BeWo/DebugConfig.cs index 036d37d9a..e5cb9cf9f 100644 --- a/BeWo/DebugConfig.cs +++ b/BeWo/DebugConfig.cs @@ -22,7 +22,7 @@ namespace BeWo { #if DEBUG - return _CurrentConfig ?? (_CurrentConfig = FeatureWohnheimWohneinheit); + return _CurrentConfig ?? (_CurrentConfig = FeatureCustomerWohnhilfe); #endif diff --git a/BeWo/View/Controls/Wohnhilfe/CustomerWohnhilfeControl.xaml b/BeWo/View/Controls/Wohnhilfe/CustomerWohnhilfeControl.xaml index 79270631e..d9d1d4303 100644 --- a/BeWo/View/Controls/Wohnhilfe/CustomerWohnhilfeControl.xaml +++ b/BeWo/View/Controls/Wohnhilfe/CustomerWohnhilfeControl.xaml @@ -17,9 +17,8 @@ x:Name="root_usercontrol" d:DataContext="{d:DesignInstance d:Type=viewmodel:CustomerWohnhilfeVM, IsDesignTimeCreatable=True}" - d:DesignHeight="1450" - d:DesignWidth="1800" SizeChanged="UserControl_SizeChanged" + HorizontalAlignment="Stretch" mc:Ignorable="d cs"> @@ -46,7 +45,7 @@ - + @@ -68,8 +67,7 @@ - - + @@ -178,10 +176,10 @@ - + - + @@ -310,8 +308,7 @@ - - + @@ -336,14 +333,14 @@ Wohnungslosenhilfe Straffälligenhilfe @@ -352,27 +349,27 @@ G7010 Art der Beendigung @@ -392,67 +389,67 @@ @@ -469,10 +466,10 @@ - + - + diff --git a/BeWo/View/Controls/Wohnhilfe/CustomerWohnhilfeControl.xaml.cs b/BeWo/View/Controls/Wohnhilfe/CustomerWohnhilfeControl.xaml.cs index ef694e262..d26716b6a 100644 --- a/BeWo/View/Controls/Wohnhilfe/CustomerWohnhilfeControl.xaml.cs +++ b/BeWo/View/Controls/Wohnhilfe/CustomerWohnhilfeControl.xaml.cs @@ -97,9 +97,6 @@ namespace BeWo.View.Controls.Wohnhilfe { grid_secondcolumn.Width = new GridLength(2, GridUnitType.Star); - grid_bund_column.Width = new GridLength(1, GridUnitType.Star); - grid_sozialstruktur_column.Width = new GridLength(1, GridUnitType.Star); - Grid.SetColumn(groupbox_2, 1); Grid.SetRow(groupbox_2, 0); Grid.SetColumn(groupbox_3, 0); @@ -112,9 +109,6 @@ namespace BeWo.View.Controls.Wohnhilfe { grid_secondcolumn.Width = new GridLength(0); - grid_bund_column.Width = new GridLength(0); - grid_sozialstruktur_column.Width = new GridLength(0); - Grid.SetColumn(groupbox_2, 0); Grid.SetRow(groupbox_2, 1); Grid.SetColumn(groupbox_3, 0); diff --git a/BeWo/View/Detail/CustomerVermittlungArbeitView.xaml b/BeWo/View/Detail/CustomerVermittlungArbeitView.xaml index 441c6113b..033f8d46b 100644 --- a/BeWo/View/Detail/CustomerVermittlungArbeitView.xaml +++ b/BeWo/View/Detail/CustomerVermittlungArbeitView.xaml @@ -1,11 +1,14 @@ - + @@ -15,31 +18,38 @@ + + + - - + + @@ -49,7 +59,7 @@ - + diff --git a/BeWo/View/Detail/CustomerWohnhilfeView.xaml b/BeWo/View/Detail/CustomerWohnhilfeView.xaml index f9174da6a..8d83cd123 100644 --- a/BeWo/View/Detail/CustomerWohnhilfeView.xaml +++ b/BeWo/View/Detail/CustomerWohnhilfeView.xaml @@ -34,7 +34,7 @@ - + @@ -42,7 +42,7 @@ - + @@ -77,7 +77,7 @@ - + From 4ec2e40615f51e63ba5562fa3c79d81253e8d6e7 Mon Sep 17 00:00:00 2001 From: Rene Evertz Date: Wed, 18 Sep 2024 17:42:37 +0200 Subject: [PATCH 02/22] final touch --- BeWo/View/Controls/Wohnhilfe/CustomerWohnhilfeControl.xaml | 4 ++-- BeWo/View/Controls/Wohnhilfe/CustomerWohnhilfeControl.xaml.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BeWo/View/Controls/Wohnhilfe/CustomerWohnhilfeControl.xaml b/BeWo/View/Controls/Wohnhilfe/CustomerWohnhilfeControl.xaml index d9d1d4303..c1d1b434d 100644 --- a/BeWo/View/Controls/Wohnhilfe/CustomerWohnhilfeControl.xaml +++ b/BeWo/View/Controls/Wohnhilfe/CustomerWohnhilfeControl.xaml @@ -44,8 +44,8 @@ VerticalScrollBarVisibility="Auto"> - - + + diff --git a/BeWo/View/Controls/Wohnhilfe/CustomerWohnhilfeControl.xaml.cs b/BeWo/View/Controls/Wohnhilfe/CustomerWohnhilfeControl.xaml.cs index d26716b6a..abde96f2b 100644 --- a/BeWo/View/Controls/Wohnhilfe/CustomerWohnhilfeControl.xaml.cs +++ b/BeWo/View/Controls/Wohnhilfe/CustomerWohnhilfeControl.xaml.cs @@ -95,7 +95,7 @@ namespace BeWo.View.Controls.Wohnhilfe private void SetLarge() { - grid_secondcolumn.Width = new GridLength(2, GridUnitType.Star); + grid_secondcolumn.Width = new GridLength(7, GridUnitType.Star); Grid.SetColumn(groupbox_2, 1); Grid.SetRow(groupbox_2, 0); From 2a23ad2ca16c1da45350cbe88654ef44563ebdaa Mon Sep 17 00:00:00 2001 From: Rene Evertz Date: Thu, 19 Sep 2024 15:34:32 +0200 Subject: [PATCH 03/22] Neue Style Struktur --- BeWo/BeWo.csproj | 71 ++++ BeWo/DebugConfig.cs | 6 +- BeWo/Styles/Colors/Colors.xaml | 4 + BeWo/Styles/ControlStyles/ButtonStyles.xaml | 139 ++++++++ BeWo/Styles/ControlStyles/CheckBoxStyles.xaml | 7 + BeWo/Styles/ControlStyles/ComboBoxStyles.xaml | 145 ++++++++ .../ControlStyles/CustomControlsStyles.xaml | 9 + BeWo/Styles/ControlStyles/DateEditStyles.xaml | 42 +++ BeWo/Styles/ControlStyles/LabelStyles.xaml | 18 + BeWo/Styles/ControlStyles/ListBoxStyles.xaml | 27 ++ .../ControlStyles/NullItemComboBoxStyles.xaml | 146 ++++++++ .../ControlStyles/RadioButtonStyles.xaml | 7 + BeWo/Styles/ControlStyles/TextBoxStyles.xaml | 67 ++++ BeWo/Styles/ControlStyles/TextEditStyles.xaml | 34 ++ .../ControlStyles/ToggleButtonStyles.xaml | 149 ++++++++ .../DataTemplates/ControlTemplates.xaml | 92 +++++ BeWo/Styles/DataTemplates/DataTemplates.xaml | 6 + BeWo/Styles/ModernOrangeBlack.xaml | 43 +++ BeWo/Styles/OrangeBlack.xaml | 4 +- BeWo/Styles/PrototypeStyles.xaml | 317 ----------------- .../CustomerVermittlungArbeitControl.xaml | 2 +- .../Wohnhilfe/CustomerWohnhilfeControl.xaml | 43 ++- .../Detail/CustomerVermittlungArbeitView.xaml | 2 +- BeWo/View/Detail/CustomerWohnhilfeView.xaml | 2 +- .../WohneinheitBelegungEditControl.xaml | 6 +- .../WohneinheitBelegungEditPopup.xaml | 4 +- .../WohneinheitBelegungWindow.xaml | 30 +- .../Wohneinheit/WohneinheitEditPopup.xaml | 27 +- .../Wohneinheit/WohneinheitEditPopup.xaml.cs | 12 +- .../WohneinheitGrundrissControl.xaml | 55 +++ .../WohneinheitGrundrissControl.xaml.cs | 87 +++++ .../WohneinheitGrundrissModalPopup.xaml | 98 ++---- .../WohneinheitGrundrissModalPopup.xaml.cs | 62 +--- .../WohneinheitVerwaltungViewV1.xaml | 4 +- .../WohneinheitVerwaltungViewV1.xaml.cs | 4 +- .../WohneinheitVerwaltungViewV2.xaml | 324 +++++++++--------- .../ListViewModel/WohneinheitListVM.cs | 5 +- 37 files changed, 1431 insertions(+), 669 deletions(-) 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/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/DataTemplates/ControlTemplates.xaml create mode 100644 BeWo/Styles/DataTemplates/DataTemplates.xaml create mode 100644 BeWo/Styles/ModernOrangeBlack.xaml create mode 100644 BeWo/View/Detail/Wohneinheit/WohneinheitGrundrissControl.xaml create mode 100644 BeWo/View/Detail/Wohneinheit/WohneinheitGrundrissControl.xaml.cs diff --git a/BeWo/BeWo.csproj b/BeWo/BeWo.csproj index 25e82a4ef..53c36d97a 100644 --- a/BeWo/BeWo.csproj +++ b/BeWo/BeWo.csproj @@ -269,6 +269,70 @@ MSBuild:Compile Designer + + 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 MSBuild:Compile @@ -367,6 +431,10 @@ Designer MSBuild:Compile + + Designer + MSBuild:Compile + Designer MSBuild:Compile @@ -1260,6 +1328,9 @@ WohneinheitBelegungWindow.xaml + + WohneinheitGrundrissControl.xaml + WohneinheitGrundrissModalPopup.xaml diff --git a/BeWo/DebugConfig.cs b/BeWo/DebugConfig.cs index e5cb9cf9f..fcf3a8142 100644 --- a/BeWo/DebugConfig.cs +++ b/BeWo/DebugConfig.cs @@ -22,7 +22,7 @@ namespace BeWo { #if DEBUG - return _CurrentConfig ?? (_CurrentConfig = FeatureCustomerWohnhilfe); + return _CurrentConfig ?? (_CurrentConfig = Feature_Customer_Wohnhilfe); #endif @@ -42,14 +42,14 @@ namespace BeWo AutoLogin = true }; - public static DebugConfig FeatureCustomerWohnhilfe => new DebugConfig() + public static DebugConfig Feature_Customer_Wohnhilfe => new DebugConfig() { DebugConfigMode = DebugConfigMode.FeatureCustomerWohnhilfe, AutoLogin = true, SelectView = UIContext.Customer }; - public static DebugConfig FeatureWohnheimWohneinheit => new DebugConfig() + public static DebugConfig Feature_Wohnheim_Wohneinheit => new DebugConfig() { DebugConfigMode = DebugConfigMode.FeatureWohnheimWohneinheit, AutoLogin = true, diff --git a/BeWo/Styles/Colors/Colors.xaml b/BeWo/Styles/Colors/Colors.xaml new file mode 100644 index 000000000..87e38a3b3 --- /dev/null +++ b/BeWo/Styles/Colors/Colors.xaml @@ -0,0 +1,4 @@ + + + \ 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..abe9b7e68 --- /dev/null +++ b/BeWo/Styles/ControlStyles/ButtonStyles.xaml @@ -0,0 +1,139 @@ + + + + + + + + \ 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..d6b503b32 --- /dev/null +++ b/BeWo/Styles/ControlStyles/ComboBoxStyles.xaml @@ -0,0 +1,145 @@ + + + + + + + + + + + + + \ 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..2ec4715c5 --- /dev/null +++ b/BeWo/Styles/ControlStyles/CustomControlsStyles.xaml @@ -0,0 +1,9 @@ + + + \ 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..be8854fb6 --- /dev/null +++ b/BeWo/Styles/ControlStyles/DateEditStyles.xaml @@ -0,0 +1,42 @@ + + + + \ 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..3b69cc776 --- /dev/null +++ b/BeWo/Styles/ControlStyles/LabelStyles.xaml @@ -0,0 +1,18 @@ + + + + + \ 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..4d3cbe084 --- /dev/null +++ b/BeWo/Styles/ControlStyles/NullItemComboBoxStyles.xaml @@ -0,0 +1,146 @@ + + + + + + + \ 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..0227101bb --- /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..03f97a58e --- /dev/null +++ b/BeWo/Styles/ControlStyles/TextBoxStyles.xaml @@ -0,0 +1,67 @@ + + + + + + + + + + + + \ 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..149f315ae --- /dev/null +++ b/BeWo/Styles/ControlStyles/TextEditStyles.xaml @@ -0,0 +1,34 @@ + + + + + + \ 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/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..2e8f8179a --- /dev/null +++ b/BeWo/Styles/DataTemplates/DataTemplates.xaml @@ -0,0 +1,6 @@ + + + \ No newline at end of file diff --git a/BeWo/Styles/ModernOrangeBlack.xaml b/BeWo/Styles/ModernOrangeBlack.xaml new file mode 100644 index 000000000..945963d94 --- /dev/null +++ b/BeWo/Styles/ModernOrangeBlack.xaml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/BeWo/View/Controls/CustomerVermittlungArbeitControl.xaml b/BeWo/View/Controls/CustomerVermittlungArbeitControl.xaml index 968f03f22..61488d697 100644 --- a/BeWo/View/Controls/CustomerVermittlungArbeitControl.xaml +++ b/BeWo/View/Controls/CustomerVermittlungArbeitControl.xaml @@ -20,7 +20,7 @@ - + - + + + + + - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - + diff --git a/BeWo/View/Detail/Wohneinheit/WohneinheitGrundrissModalPopup.xaml.cs b/BeWo/View/Detail/Wohneinheit/WohneinheitGrundrissModalPopup.xaml.cs index 5fb24859d..921cf2cf9 100644 --- a/BeWo/View/Detail/Wohneinheit/WohneinheitGrundrissModalPopup.xaml.cs +++ b/BeWo/View/Detail/Wohneinheit/WohneinheitGrundrissModalPopup.xaml.cs @@ -26,74 +26,18 @@ namespace BeWo.View.Detail.Wohneinheit /// public partial class WohneinheitGrundrissModalPopup : BeWoView { - public ImageListVM Images { get; set; } - - public WohneinheitGrundrissModalPopup(ImageListVM images) + public WohneinheitGrundrissModalPopup() { InitializeComponent(); - this.CommandBindings.Add(new CommandBinding(ApplicationCommands.Close, + CommandBindings.Add(new CommandBinding(ApplicationCommands.Close, (s, e) => { BeWoApp.MainControl.CloseCurrentPopUp(); + e.Handled = true; })); - - Images = images; - - DataContext = Images.VMList; } - private void MenuItem_Add_Click(object sender, RoutedEventArgs e) - { - var dialog = new Microsoft.Win32.OpenFileDialog(); - dialog.Title = "Wähle einen Grundriss aus"; - dialog.Filter = "ALL supported Graphics| *.jpeg; *.jpg;*.png;"; - // Show open file dialog box - bool? result = dialog.ShowDialog(); - - if (result != true) - return; - - var info = new FileInfo(dialog.FileName); - - if (!info.Exists) - return; - - var vm = new ImageVM(); - - vm.Filename = info.Name; - vm.Fullname = info.FullName; - vm.Original = File.ReadAllBytes(info.FullName); - - Images.VMList.Add(vm); - } - - private void MenuItem_Del_Click(object sender, RoutedEventArgs e) - { - var t = PhotosListBox.SelectedItem as ImageVM; - - if (t is null) - return; - - Images.VMList.Remove(t); - } - - private void StackPanel_MouseDown(object sender, MouseButtonEventArgs e) - { - var stackpanel = sender as StackPanel; - - var image = stackpanel?.Children?[0] as Image; - - var image_source = image?.Source; - - if (image_source is object) - { - if(e.ClickCount >= 2) - { - BeWoUtils.ShowImageForm(image_source); - } - } - } } } diff --git a/BeWo/View/Detail/Wohneinheit/WohneinheitVerwaltungViewV1.xaml b/BeWo/View/Detail/Wohneinheit/WohneinheitVerwaltungViewV1.xaml index 72813014a..96eb91ee0 100644 --- a/BeWo/View/Detail/Wohneinheit/WohneinheitVerwaltungViewV1.xaml +++ b/BeWo/View/Detail/Wohneinheit/WohneinheitVerwaltungViewV1.xaml @@ -18,7 +18,7 @@ - + @@ -219,7 +219,7 @@ - + diff --git a/BeWo/View/Detail/Wohneinheit/WohneinheitVerwaltungViewV1.xaml.cs b/BeWo/View/Detail/Wohneinheit/WohneinheitVerwaltungViewV1.xaml.cs index 4dd47a16e..cff6df0a9 100644 --- a/BeWo/View/Detail/Wohneinheit/WohneinheitVerwaltungViewV1.xaml.cs +++ b/BeWo/View/Detail/Wohneinheit/WohneinheitVerwaltungViewV1.xaml.cs @@ -95,7 +95,9 @@ namespace BeWo.View.Detail.Wohneinheit var vm = datagrid_wohneinheiten.GetCurrentValue(); - var control = new WohneinheitGrundrissModalPopup(vm.ImageListVM); + var control = new WohneinheitGrundrissModalPopup(); + + control.DataContext = vm.ImageListVM; BeWoApp.MainControl.ShowControlAsModalPopup(control); diff --git a/BeWo/View/Detail/Wohneinheit/WohneinheitVerwaltungViewV2.xaml b/BeWo/View/Detail/Wohneinheit/WohneinheitVerwaltungViewV2.xaml index 69f6f2016..a3c021bd6 100644 --- a/BeWo/View/Detail/Wohneinheit/WohneinheitVerwaltungViewV2.xaml +++ b/BeWo/View/Detail/Wohneinheit/WohneinheitVerwaltungViewV2.xaml @@ -16,7 +16,7 @@ - + @@ -28,7 +28,7 @@ @@ -83,174 +83,182 @@ ToolTip="Wohneinheit entfernen" /> - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + - + + + + - - diff --git a/BeWo/ViewModel/ListViewModel/WohneinheitListVM.cs b/BeWo/ViewModel/ListViewModel/WohneinheitListVM.cs index 8fe39f327..3fcecef65 100644 --- a/BeWo/ViewModel/ListViewModel/WohneinheitListVM.cs +++ b/BeWo/ViewModel/ListViewModel/WohneinheitListVM.cs @@ -22,9 +22,12 @@ namespace BeWo.ViewModel.ListViewModel public bool PermissionWohneinheitGalleryView { get; } = BeWoApp.HasLoggedOnUserRight(UserRightType.WohnheimView_Wohneinheit_Gallery_View); public bool PermissionWohneinheitGalleryManage { get; } = BeWoApp.HasLoggedOnUserRight(UserRightType.WohnheimView_Wohneinheit_Gallery_Manage); + /// + /// Designer + /// public WohneinheitListVM() : base(null) { - + VMList.Add(new WohneinheitVM()); } public WohneinheitListVM(List pDCs) : base(pDCs) From b9fd6c803f2f9b58ff6800b0df09e3c0030e8529 Mon Sep 17 00:00:00 2001 From: Rene Evertz Date: Fri, 20 Sep 2024 12:21:40 +0200 Subject: [PATCH 04/22] TextBlock Trimming funkt nicht mehr, todo --- BeWo/Styles/Colors/Colors.xaml | 8 ++- BeWo/Styles/ControlStyles/ComboBoxStyles.xaml | 36 ++++++++--- .../ControlStyles/NullItemComboBoxStyles.xaml | 6 +- BeWo/Styles/ControlStyles/TextEditStyles.xaml | 53 +++++++++++---- .../CustomerVermittlungArbeitControl.xaml | 64 ++++++++++--------- .../Wohnhilfe/CustomerWohnhilfeControl.xaml | 10 +-- .../Detail/CustomerVermittlungArbeitView.xaml | 2 +- 7 files changed, 117 insertions(+), 62 deletions(-) diff --git a/BeWo/Styles/Colors/Colors.xaml b/BeWo/Styles/Colors/Colors.xaml index 87e38a3b3..6d82f9f5d 100644 --- a/BeWo/Styles/Colors/Colors.xaml +++ b/BeWo/Styles/Colors/Colors.xaml @@ -1,4 +1,8 @@ - + + + + + + \ No newline at end of file diff --git a/BeWo/Styles/ControlStyles/ComboBoxStyles.xaml b/BeWo/Styles/ControlStyles/ComboBoxStyles.xaml index d6b503b32..0cb037971 100644 --- a/BeWo/Styles/ControlStyles/ComboBoxStyles.xaml +++ b/BeWo/Styles/ControlStyles/ComboBoxStyles.xaml @@ -1,11 +1,16 @@  + xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" + xmlns:conv="clr-namespace:BeWo.Converter"> + + + + + - + @@ -128,11 +138,16 @@ - + \ No newline at end of file diff --git a/BeWo/Styles/ControlStyles/NullItemComboBoxStyles.xaml b/BeWo/Styles/ControlStyles/NullItemComboBoxStyles.xaml index 4d3cbe084..49dc57942 100644 --- a/BeWo/Styles/ControlStyles/NullItemComboBoxStyles.xaml +++ b/BeWo/Styles/ControlStyles/NullItemComboBoxStyles.xaml @@ -102,10 +102,10 @@ - + - + @@ -142,5 +142,7 @@ BasedOn="{StaticResource PrimaryNullItemComboBox}" TargetType="{x:Type uc:NullItemComboBox}"> + + \ No newline at end of file diff --git a/BeWo/Styles/ControlStyles/TextEditStyles.xaml b/BeWo/Styles/ControlStyles/TextEditStyles.xaml index 149f315ae..dc7d25b10 100644 --- a/BeWo/Styles/ControlStyles/TextEditStyles.xaml +++ b/BeWo/Styles/ControlStyles/TextEditStyles.xaml @@ -1,34 +1,63 @@ - + + + + + + + + + + + \ No newline at end of file diff --git a/BeWo/View/Controls/CustomerVermittlungArbeitControl.xaml b/BeWo/View/Controls/CustomerVermittlungArbeitControl.xaml index 61488d697..4f9cf67ca 100644 --- a/BeWo/View/Controls/CustomerVermittlungArbeitControl.xaml +++ b/BeWo/View/Controls/CustomerVermittlungArbeitControl.xaml @@ -7,14 +7,16 @@ xmlns:markup="clr-namespace:BeWo.MultiLanguage.Markup" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:uc="clr-namespace:BeWo.Controls;assembly=BeWo.Controls" + xmlns:viewmodel="clr-namespace:BeWo.ViewModel" + d:DataContext="{d:DesignInstance Type=viewmodel:CustomerGemeinnutzigeArbeitVM}" d:DesignHeight="1450" d:DesignWidth="1800" mc:Ignorable="d"> @@ -26,6 +28,18 @@ + + + + @@ -80,8 +94,8 @@ +