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)