Skip to content

Commit 38359b4

Browse files
committed
optimize user interface
1 parent e4e1bf0 commit 38359b4

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

excel-add-in/AccUnitLoader.xlam

909 Bytes
Binary file not shown.

excel-add-in/source/AccUnitLoaderForm.frm

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ On Error GoTo HandleErr
143143
.AddMenuItem 11, "Import AccUnit files from directory"
144144
#End If
145145

146-
If ThisWorkbook.CustomDocumentProperties.Count = 10 Then
146+
If ThisWorkbook.CustomDocumentProperties.Count >= 5 Then
147147
.AddMenuItem -2, "", MF_SEPARATOR
148148
.AddMenuItem 21, "Export AccUnit files to directory"
149149
.AddMenuItem 22, "Remove AccUnit files from Add-In file"
@@ -162,16 +162,18 @@ End If
162162
Select Case mnu.OpenMenu(m_OpenMenuMouse_X, m_OpenMenuMouse_Y)
163163
Case 11
164164
ImportAccUnitFiles
165+
SetEnableMode
165166
SuccessMessage = "AccUnit files imported"
166167
Case 21
167168
ExportAccUnitFiles
169+
SetEnableMode
168170
SuccessMessage = "AccUnit files exported"
169171
Case 22
170172
RemoveAccUnitFilesFromAddInStorage
173+
SetEnableMode
171174
SuccessMessage = "AccUnit files removed from Add-In file"
172175
Case 31
173176
RemoveTestEnvironment True
174-
SetEnableMode
175177
SuccessMessage = "Test environment end test classes removed"
176178
Case 32
177179
RemoveTestEnvironment False
@@ -249,11 +251,10 @@ Private Sub SetEnableMode()
249251
bolPathExists = Len(Me.txtAccUnitDllPath.Value & vbNullString) > 0
250252

251253
Me.cmdSetAccUnitTlbReferenz.Enabled = bolPathExists
252-
With Me.cmdInsertFactoryModule
254+
Me.cmdInsertFactoryModule.Enabled = bolPathExists
255+
With Me.cmdExportFilesToFolder
253256
.Enabled = bolPathExists
254-
If bolPathExists Then
255-
.Enabled = (ThisWorkbook.CustomDocumentProperties.Count = 10)
256-
End If
257+
.Visible = (ThisWorkbook.CustomDocumentProperties.Count >= 5)
257258
End With
258259

259260
End Sub
0 Bytes
Binary file not shown.

excel-add-in/source/config_Application.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Option Explicit
1919
Option Private Module
2020

2121
'Version nummer
22-
Private Const APPLICATION_VERSION As String = "0.9.2.240307"
22+
Private Const APPLICATION_VERSION As String = "0.9.3.240307"
2323

2424
Private Const APPLICATION_NAME As String = "ACLib AccUnit Loader"
2525
Private Const APPLICATION_FULLNAME As String = "Access Code Library - AccUnit Loader"

0 commit comments

Comments
 (0)