31.07.2023

This commit is contained in:
Jonathan Jenne
2023-07-31 11:51:33 +02:00
parent b24fbf58fc
commit 13cf091d8e
15 changed files with 349 additions and 106 deletions

View File

@@ -18,8 +18,13 @@ Partial Public Class frmEnvelopeEditor
Private Sub btnNewFile_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles btnNewFile.ItemClick
If OpenFileDialog1.ShowDialog() = DialogResult.OK Then
Dim oFileInfo = New FileInfo(OpenFileDialog1.FileName)
Documents.Add(New EnvelopeDocument() With {.FileInfo = oFileInfo})
Dim oDocument = Controller.CreateDocument(OpenFileDialog1.FileName)
If oDocument IsNot Nothing Then
Documents.Add(oDocument)
Else
MsgBox("Dokument konnte nicht gespeichert werden!", MsgBoxStyle.Critical, Text)
End If
End If
End Sub
@@ -55,7 +60,9 @@ Partial Public Class frmEnvelopeEditor
Private Sub btnSave_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles btnSave.ItemClick
Try
SaveEnvelope()
If SaveEnvelope() Then
End If
Catch ex As Exception
Logger.Error(ex)
End Try