|
@@ -192,10 +192,16 @@ namespace PRSDesktop
|
|
|
var id = (Guid)table.Rows[e.RowColumnIndex.RowIndex - 1]["ID"];
|
|
|
|
|
|
if (formType == null) return;
|
|
|
- var entityForm = typeof(QADashboard)
|
|
|
- .GetMethod(nameof(GetEntityForm), System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance)!
|
|
|
- .MakeGenericMethod(formType)
|
|
|
- .Invoke(this, new object[] { id }) as IDigitalFormInstance;
|
|
|
+
|
|
|
+ IDigitalFormInstance? entityForm = null;
|
|
|
+ Progress.ShowModal("Loading Form", (s) =>
|
|
|
+ {
|
|
|
+ entityForm = typeof(QADashboard)
|
|
|
+ .GetMethod(nameof(GetEntityForm), System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance)!
|
|
|
+ .MakeGenericMethod(formType)
|
|
|
+ .Invoke(this, new object[] { id }) as IDigitalFormInstance;
|
|
|
+ });
|
|
|
+
|
|
|
if (entityForm != null)
|
|
|
{
|
|
|
if (DynamicFormEditWindow.EditDigitalForm(entityForm, out var dataModel))
|