EDMI: final changes to Client

This commit is contained in:
Jonathan Jenne
2021-06-29 11:22:19 +02:00
parent 54c96b0b1f
commit 5658c233ee
6 changed files with 19 additions and 12 deletions

View File

@@ -95,17 +95,13 @@ Public Class frmtest
End Sub
Private Async Sub Button8_Click(sender As Object, e As EventArgs) Handles Button8.Click
Dim oResult As Object
If OpenFileDialog1.ShowDialog() <> DialogResult.OK Then
Exit Sub
End If
txtFile2Import.Text = OpenFileDialog1.FileName
oResult = Await My.Application.Service.Client.NewFileAsync(
Dim oResult As FileMeta = Await My.Application.Service.Client.NewFileAsync(
txtFile2Import.Text,
Environment.UserName,
Date.Now,
@@ -116,7 +112,7 @@ Public Class frmtest
}
)
MsgBox($"File saved to: [{oResult}]")
MsgBox($"File saved to: [{oResult.FilePath}]")
'oResult = Await My.Application.Service.Client.ImportFileObjectAsync(oContents, My.Application.User.UserName, txtIDB_OBJ_ID.Text, 1, txtIDBFOPath.Text)
End Sub