MS Optimizing, CurrentLocal
This commit is contained in:
@@ -13,7 +13,7 @@ Public Class Form1
|
||||
|
||||
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
||||
Try
|
||||
_LogConfig = New LogConfig(LogConfig.PathType.Temp, Nothing, "EDMIBenschmark")
|
||||
_LogConfig = New LogConfig(LogConfig.PathType.Temp, Nothing, "EDMIBenchmark")
|
||||
_Logger = _LogConfig.GetLogger()
|
||||
_Client = New Client(_LogConfig, "172.24.12.39", 9000)
|
||||
_Client.Connect()
|
||||
@@ -227,13 +227,14 @@ Public Class Form1
|
||||
Dim oSortExpression As String = TextboxDatatableSort.EditValue
|
||||
Dim oFilterExpression As String = TextboxDatatableFilter.EditValue
|
||||
Dim oResponse As TableResult = Await _Client.GetDatatableByNameAsync(oDatatableName, oFilterExpression, oSortExpression)
|
||||
|
||||
Dim oDt As DataTable = oResponse.Table
|
||||
GridControl1.DataSource = oDt
|
||||
oSWTotal.Stop()
|
||||
|
||||
If oResponse.OK Then
|
||||
AddLogMessage($"DataTable [{oDatatableName}] loaded: [{FormatTime(oSWTotal.ElapsedMilliseconds)}]")
|
||||
AddLogMessage(Now.ToLongTimeString + $"DataTable [{oDatatableName}] loaded: [{FormatTime(oSWTotal.ElapsedMilliseconds)}]")
|
||||
Else
|
||||
AddLogMessage($"DataTable [{oDatatableName}] could not be loaded. Error: {oResponse.ErrorMessage}")
|
||||
AddLogMessage(Now.ToLongTimeString + $"DataTable [{oDatatableName}] could not be loaded. Error: {oResponse.ErrorMessage}")
|
||||
End If
|
||||
Catch ex As FaultException
|
||||
MsgBox(ex.Reason.ToString, MsgBoxStyle.Critical, "Error from Service")
|
||||
|
||||
Reference in New Issue
Block a user