Ver Fonte

Fix to Variable grid form lookups

Kenric Nugteren há 2 anos atrás
pai
commit
9cd42ae72e
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      inabox.wpf/DigitalForms/DynamicVariableGrid.cs

+ 1 - 1
inabox.wpf/DigitalForms/DynamicVariableGrid.cs

@@ -209,7 +209,6 @@ namespace InABox.DynamicGrid
                 editor.OnFormCustomiseEditor += (sender, items, column, editor) => Editor_OnFormCustomiseEditor(sender, variables, column, editor);
             }
 
-            editor.Items = new BaseObject[] { item };
             editor.OnDefineLookups += o =>
             {
                 var def = (o.EditorDefinition as ILookupEditor)!;
@@ -260,6 +259,7 @@ namespace InABox.DynamicGrid
                 }
                 return errors;
             };
+            editor.Items = new BaseObject[] { item };
             return editor.ShowDialog() == true;
         }