Keine Exceptions

This commit is contained in:
2025-04-15 13:35:45 +02:00
parent 782d9f7a3a
commit 61b42b3235
3 changed files with 11 additions and 10 deletions

View File

@@ -13,11 +13,6 @@ namespace BeWo.Services
{
public Control GetAiConversationControl(UIContext uIContext, Dictionary<TableID, long[]> context)
{
#if !DEBUG
BeWoApp.ShowInfoMessage("Diese Funktion befindet sich in der Testphase.");
return null;
#endif
var control = new AiConversationChatView();
control.ViewModel.UIContext = (int)uIContext;

View File

@@ -23,11 +23,6 @@ namespace BeWo.Services
public AnimatedBeWoWindow GetAiConversationWindow(UIContext uIContext, Control control, double height = 600, double width = 1200)
{
#if !DEBUG
BeWoApp.ShowInfoMessage("Diese Funktion befindet sich in der Testphase.");
return null;
#endif
string title = null;
UIContext2Header.TryGetValue(uIContext, out title);

View File

@@ -23,12 +23,23 @@ namespace BeWo.Services
public void ShowAiConversationWindow(UIContext uIContext, Dictionary<TableID, long[]> bewoObjects)
{
#if !DEBUG
BeWoApp.ShowInfoMessage("Diese Funktion befindet sich in der Testphase.");
return;
#endif
ShowWindowDialog(
cf => cf.GetAiConversationControl(uIContext, bewoObjects),
(wf, ctrl) => wf.GetAiConversationWindow(uIContext, ctrl));
}
public void ShowAiConversationModalViewWindow(UIContext uIContext, Dictionary<TableID, long[]> bewoObjects)
{
#if !DEBUG
BeWoApp.ShowInfoMessage("Diese Funktion befindet sich in der Testphase.");
return;
#endif
ShowModalViewWindow(cf => cf.GetAiConversationControl(uIContext, bewoObjects));
}