Show last modified date for templates

This commit is contained in:
Jonathan Jenne
2022-10-10 11:45:08 +02:00
parent 8a1bb6911f
commit 16ace2c242
3 changed files with 33 additions and 1 deletions

View File

@@ -124,6 +124,19 @@ Public Class frmMain
Dim oBindingSource = New BindingList(Of Template)
For Each oTemplate As Template In TemplateLoader.TemplateList
' Check template files and update modified date
Try
Dim oFilePath = IO.Path.Combine(My.GeneralConfiguration.TemplateDirectory, oTemplate.FileName)
Dim oFileInfo = New FileInfo(oFilePath)
If oFileInfo.Exists Then
oTemplate.LastModified = oFileInfo.LastWriteTime
End If
Catch ex As Exception
Logger.Error(ex)
End Try
oBindingSource.Add(oTemplate)
Next
Return oBindingSource
@@ -287,4 +300,8 @@ Public Class frmMain
RibbonPageGroupStart.Enabled = True
SplashScreenManager.CloseWaitForm()
End Sub
Private Sub RibbonControl1_Click(sender As Object, e As EventArgs) Handles RibbonControl1.Click
End Sub
End Class