Exception falls Settings nicht gefunden wird - Darf nicht passieren
This commit is contained in:
@@ -77,12 +77,14 @@ namespace BeWo.AI.Controls
|
||||
|
||||
var settings = serviceRecordList.AiUserSetting;
|
||||
|
||||
if (settings is null)
|
||||
throw new NotImplementedException("Can't find DataContext (settings)");
|
||||
|
||||
view.DataContext = settings;
|
||||
|
||||
var factory = new BeWoWindowFactory();
|
||||
var beWoWindow = factory.GetAnimatedBeWoWindow(Translator.Translate("BeWoPlaner"), view, 500, 600);
|
||||
|
||||
|
||||
view.ApplyClicked += (s, e) =>
|
||||
{
|
||||
if (TargetTextBox != null)
|
||||
|
||||
Reference in New Issue
Block a user