Show Version and Button to open Log Directory

This commit is contained in:
Jonathan Jenne
2022-09-19 16:53:58 +02:00
parent 3784b23641
commit 1951f7e48c
10 changed files with 158 additions and 61 deletions

View File

@@ -144,6 +144,8 @@ Public Class frmMonitor
SplitContainerFileHTML.Collapsed = True
SetResultCount(0)
SetVersion()
Catch ex As Exception
FormHelper.ShowErrorMessage(ex, "frmStart_Load")
@@ -813,6 +815,10 @@ Public Class frmMonitor
lbResultCount.Caption = String.Format(lbResultCount.Tag, pResults)
End Sub
Private Sub SetVersion()
lbVersion.Caption = String.Format(lbVersion.Tag, System.Reflection.Assembly.GetEntryAssembly().GetName().Version)
End Sub
Private Sub InitGrid()
GridControlResults = GridLoader.InitGrid()
GridViewResults = DirectCast(GridControlResults.DefaultView, GridView)
@@ -845,5 +851,13 @@ Public Class frmMonitor
Workspace.SaveWorkspace(ActiveSearch.Id.ToString)
End Sub
Private Sub BarButtonItem3_ItemClick_1(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles BarButtonItem3.ItemClick
Try
Process.Start(LogConfig.LogDirectory)
Catch ex As Exception
FormHelper.ShowErrorMessage(ex, "Log Verzeichnis öffnen")
End Try
End Sub
End Class