Ver Fonte

Updates to EditOnAdd functionality for EntityFormGrid

Kenric Nugteren há 10 meses atrás
pai
commit
cbf4bf5581
1 ficheiros alterados com 2 adições e 10 exclusões
  1. 2 10
      prs.desktop/Panels/Jobs/Digital Forms/JobFormGrid.cs

+ 2 - 10
prs.desktop/Panels/Jobs/Digital Forms/JobFormGrid.cs

@@ -38,6 +38,8 @@ namespace PRSDesktop
             base.DoReconfigure(options);
             options.SelectColumns = true;
             options.FilterRows = true;
+
+            EditOnAdd = true;
         }
 
         protected override void Reload(
@@ -53,16 +55,6 @@ namespace PRSDesktop
             return base.CanCreateItems() && Master != null;
         }
 
-        protected override void OnFormCreated(JobForm form)
-        {
-            base.OnFormCreated(form);
-
-            if (DynamicFormEditWindow.EditDigitalForm(form, out var dataModel))
-            {
-                dataModel.Update(null);
-            }
-        }
-
         public override JobForm CreateItem()
         {
             var result = base.CreateItem();