MDM UST, MSE-API, API-Einstellungen

This commit is contained in:
2024-08-20 09:27:26 +02:00
parent 1cd82d4a6f
commit 0bb8d59d97
3 changed files with 17 additions and 8 deletions

View File

@@ -231,12 +231,17 @@ Public Class frmAPIEinstellungen
Dim tmprowindex As Integer = e.RowIndex
If DataGridView.Columns(e.ColumnIndex).Name = "pathToFile" Then
If DataGridView.CurrentRow.Cells("api_debugpath").Value IsNot DBNull.Value AndAlso (DataGridView.CurrentRow.Cells("api_debugpath").Value.ToString.StartsWith("\\") Or DataGridView.CurrentRow.Cells("api_debugpath").Value.ToString.StartsWith("C:\")) Then
Process.Start(DataGridView.CurrentRow.Cells("api_debugpath").Value)
End If
If DataGridView.CurrentRow.Cells("api_debugpath").Value <> "" Then
Dim path As New System.IO.DirectoryInfo(DataGridView.CurrentRow.Cells("api_debugpath").Value)
If DataGridView.CurrentRow.Cells("api_debugpath").Value IsNot DBNull.Value AndAlso path.Exists Then
Process.Start(DataGridView.CurrentRow.Cells("api_debugpath").Value)
End If
End If
Else
End If
End If
Me.Cursor = Cursors.Default
End Sub