refactor(EnvelopeDocument): rename as Document
This commit is contained in:
@@ -17,7 +17,7 @@ Imports EnvelopeGenerator.Domain.Entities
|
||||
|
||||
Partial Public Class frmEnvelopeEditor
|
||||
Public Property Envelope As Envelope
|
||||
Public Property Documents As New BindingList(Of EnvelopeDocument)
|
||||
Public Property Documents As New BindingList(Of Document)
|
||||
Public Property Receivers As New BindingList(Of ReceiverVM)
|
||||
|
||||
Private AllReceiverEmails As New List(Of String)
|
||||
@@ -104,10 +104,10 @@ Partial Public Class frmEnvelopeEditor
|
||||
End If
|
||||
Else
|
||||
Controller = New EnvelopeEditorController(State, Envelope)
|
||||
Documents = New BindingList(Of EnvelopeDocument)(Controller.Envelope.Documents)
|
||||
Documents = New BindingList(Of Document)(Controller.Envelope.Documents)
|
||||
Receivers = New BindingList(Of ReceiverVM)(Controller.Envelope.EnvelopeReceivers.Select(Function(r) ReceiverVM.From(r)).ToList())
|
||||
|
||||
For Each docItem As EnvelopeDocument In Documents
|
||||
For Each docItem As Document In Documents
|
||||
If Not File.Exists(docItem.Filepath) Then
|
||||
Dim oTempFolder = TempFiles._TempPath
|
||||
Dim oTempFilename = String.Concat(oTempFolder, "\", $"ViewEnvDoc_{Envelope.Id}.pdf")
|
||||
@@ -183,7 +183,7 @@ Partial Public Class frmEnvelopeEditor
|
||||
Exit Sub
|
||||
End If
|
||||
|
||||
Dim oDocument As EnvelopeDocument = DirectCast(ViewDocuments.GetFocusedRow(), EnvelopeDocument)
|
||||
Dim oDocument As Document = DirectCast(ViewDocuments.GetFocusedRow(), Document)
|
||||
If Controller.DeleteDocument(oDocument) Then
|
||||
Documents.Remove(oDocument)
|
||||
GridDocuments.DataSource = Nothing
|
||||
@@ -213,7 +213,7 @@ Partial Public Class frmEnvelopeEditor
|
||||
End If
|
||||
|
||||
If ViewDocuments.GetSelectedRows().Count > 0 Then
|
||||
Dim oDocument As EnvelopeDocument = DirectCast(ViewDocuments.GetFocusedRow(), EnvelopeDocument)
|
||||
Dim oDocument As Document = DirectCast(ViewDocuments.GetFocusedRow(), Document)
|
||||
Dim oEnvelope = Controller.Envelope
|
||||
If Not IsNothing(oDocument.ByteData) Then
|
||||
Dim oTempFolder = TempFiles._TempPath
|
||||
|
||||
Reference in New Issue
Block a user