Version 1.3.9.9: Disable mandator before files are loaded

This commit is contained in:
Jonathan Jenne
2023-05-24 13:59:14 +02:00
parent 22bb9b14a1
commit 47407ac79a
16 changed files with 584 additions and 573 deletions

View File

@@ -39,7 +39,9 @@ Public Class frmImportMain
Private CurrentGrid As GridControl = Nothing
Private CurrentDocument As Document = Nothing
Private CurrentDocumentReadOnly As Boolean = False
Private FilesLoading As Boolean = False
Private FilesLoaded As Boolean = False
Public Sub New(pLogConfig As LogConfig, pConfigManager As ConfigManager(Of Config), pTemplate As Template)
InitializeComponent()
@@ -681,7 +683,11 @@ Public Class frmImportMain
GridControlFiles.DataSource = Nothing
GridControlFiles.DataSource = DocumentLoader.Files
FilesLoaded = DocumentLoader.Files.Count > 0
txtFilesLoaded.Caption = String.Format(My.Resources.frmImportMainExtra._0__Dateien_geladen, DocumentLoader.Files.Count)
Else
FilesLoaded = False
End If
Catch ex As Exception
@@ -876,7 +882,7 @@ Public Class frmImportMain
RibbonPageGroupReport.Enabled = True
RibbonPageGroupTransfer.Enabled = True
lookupMandator.Enabled = True
lookupMandator.Enabled = FilesLoaded
SplitContainerGrids.Enabled = True
GridControlFiles.Enabled = True
SetDocumentButtonsEnabled(True)