diff --git a/BeWo/Services/BeWoWindowService.cs b/BeWo/Services/BeWoWindowService.cs index fbabab803..39ae5d51f 100644 --- a/BeWo/Services/BeWoWindowService.cs +++ b/BeWo/Services/BeWoWindowService.cs @@ -237,8 +237,7 @@ namespace BeWo.Services if (windowViewModel is DialogViewModel dialogViewModel) { - dialogViewModel.Closing += (s, e) => window.Close(); - window.Closed += (s, e) => dialogViewModel.CloseFinalCommand.Execute(null); + dialogViewModel.RequestCloseFinal += (s, e) => window.Close(); } if (options.ShowAsDialog) diff --git a/BeWo/Styles/ControlStyles/GroupBoxStyles.xaml b/BeWo/Styles/ControlStyles/GroupBoxStyles.xaml index b145aae5b..deb694f71 100644 --- a/BeWo/Styles/ControlStyles/GroupBoxStyles.xaml +++ b/BeWo/Styles/ControlStyles/GroupBoxStyles.xaml @@ -52,129 +52,4 @@ - - \ No newline at end of file diff --git a/BeWo/View/Controls/AI/AiChatButton.xaml.cs b/BeWo/View/Controls/AI/AiChatButton.xaml.cs index 644ff35e0..72ad7c438 100644 --- a/BeWo/View/Controls/AI/AiChatButton.xaml.cs +++ b/BeWo/View/Controls/AI/AiChatButton.xaml.cs @@ -67,13 +67,12 @@ namespace BeWo.View.Controls.AI { var viewmodel = new AiPromptbausteinSelectionComplexViewModel(actionType, listvm); viewmodel.ItemAccepted += ItemAccepted; - viewmodel.Closed += (s, e) => viewmodel.ResetSelection(); + viewmodel.RequestCloseFinal += (s, e) => viewmodel.ResetSelection(); ViewModel.AllPromptsViewModel = viewmodel; var viewmodel2 = new AiPromptbausteinSelectionComplexViewModel(actionType, listvm, true); viewmodel2.ItemAccepted += ItemAccepted; - popup_promptbaustein_favoriten.Closed += (s, e) => viewmodel2.CloseFinalCommand.Execute(null); - viewmodel2.Closed += (s, e) => viewmodel2.ResetSelection(); + popup_promptbaustein_favoriten.Closed += (s, e) => viewmodel2.ResetSelection(); var view2 = new AiPromptbausteinComplexSelectionFavoritenView(viewmodel2); viewmodel2.SelectedFolder = viewmodel2.Folders.VMList[0]; view2.Padding = new Thickness(3); diff --git a/BeWo/View/Controls/AI/AiPromptbausteinLibraryControl.xaml b/BeWo/View/Controls/AI/AiPromptbausteinLibraryControl.xaml index 38b8b42c1..e2ab79dab 100644 --- a/BeWo/View/Controls/AI/AiPromptbausteinLibraryControl.xaml +++ b/BeWo/View/Controls/AI/AiPromptbausteinLibraryControl.xaml @@ -186,8 +186,8 @@ - - + + @@ -238,26 +238,25 @@ Background="Transparent" ContextMenuOpening="ListBox_ContextMenuOpening" PreviewMouseDown="Grid_PreviewMouseDown_2"> - - - - - - - - - - - - - - + + + + + + + + + + + + - - + - - - - - - + + + + - - - - + - - - - - - - - + + + + + + + - - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - + + + @@ -416,16 +414,22 @@ - + - - - - - - - - - - - - - - - - - + + + + + + + + - - - - - + + + + - - - - - - - + - - - - - - - + + + + + + + + - + + Text="{Binding Oid}" />