jj: prevent opening of same window twice

This commit is contained in:
Jonathan Jenne
2018-07-12 14:20:05 +02:00
parent 8103f5d055
commit ceda3be741
3 changed files with 8 additions and 1 deletions

View File

@@ -266,7 +266,12 @@ Module ModuleHelperMethods
Public Sub OpenFormConstructor(id As Integer, Optional recordId As Integer = -1)
Try
If CURRENT_OPEN_CONSTRUCTOR_FORMS.Contains(id) Then
Exit Sub
End If
CURRENT_CONSTRUCTOR_ID = id
CURRENT_OPEN_CONSTRUCTOR_FORMS.Add(id)
Dim frm As New frmConstructor_Main()
' frm = frmForm_Constructor.Instance()