Keine Exceptions
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user