Version 1.3.9.9: Disable mandator before files are loaded
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user