This commit is contained in:
Jonathan Jenne
2023-12-06 10:13:54 +01:00
parent 3b3445cc03
commit 489c7879da
4 changed files with 45 additions and 15 deletions

View File

@@ -391,4 +391,10 @@ Partial Public Class frmEnvelopeEditor
Me.Text = oFormTitle
End Sub
Private Sub frmEnvelopeEditor_FormClosing(sender As Object, e As FormClosingEventArgs) Handles MyBase.FormClosing
If Controller.Envelope?.Status = EnvelopeStatus.EnvelopeCreated Then
Controller.DeleteEnvelopeFromDisk(Controller.Envelope)
End If
End Sub
End Class