ZooFlow: Update Zooflow Form, Globix Tweaks

This commit is contained in:
Jonathan Jenne
2021-06-17 13:12:12 +02:00
parent 2529c30726
commit c558df75a9
13 changed files with 714 additions and 637 deletions

View File

@@ -93,4 +93,36 @@ Public Class frmtest
File.Copy(txtIDBFOPath.Text, oFile)
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
Using oStream As New FileStream(txtFile2Import.Text, FileMode.Open, FileAccess.Read)
Using oMemoryStream As New MemoryStream
oStream.CopyTo(oMemoryStream)
Dim oContents As Byte() = oMemoryStream.ToArray()
oResult = Await My.Application.Service.Client.ImportFileAsync(
txtFile2Import.Text,
Environment.UserName,
Date.Now,
"WORK",
1,
"DEFAULT",
New Client.ImportFileOptions With {
.KeepExtension = True
}
)
MsgBox($"File saved to: [{oResult}]")
'oResult = Await My.Application.Service.Client.ImportFileObjectAsync(oContents, My.Application.User.UserName, txtIDB_OBJ_ID.Text, 1, txtIDBFOPath.Text)
End Using
End Using
End Sub
End Class