envelope options

This commit is contained in:
Jonathan Jenne
2023-12-13 11:36:48 +01:00
parent 0dfc9b4f09
commit f50a19d537
7 changed files with 1032 additions and 274 deletions

View File

@@ -22,6 +22,8 @@ Public Class frmEnvelopeMainData
cmbContractType.ReadOnly = True
End If
groupAllOptions.Expanded = False
Dim contractTypeList = [Enum].GetValues(GetType(ContractType)).Cast(Of ContractType)()
Dim oTranslatedList = contractTypeList.Select(AddressOf TranslateContractType).ToList()
@@ -49,4 +51,19 @@ Public Class frmEnvelopeMainData
EnvelopeTitle = txtTitle.EditValue
EnvelopeContractType = cmbContractType.SelectedIndex + 1
End Sub
Private Sub frmEnvelopeMainData_Shown(sender As Object, e As EventArgs) Handles Me.Shown
SetFormHeight()
End Sub
Private Sub SetFormHeight()
ClientSize = New Size(ClientSize.Width, LayoutControl1.Root.MinSize.Height)
End Sub
Private Sub LayoutControl1_GroupExpandChanged(sender As Object, e As DevExpress.XtraLayout.Utils.LayoutGroupEventArgs) Handles LayoutControl1.GroupExpandChanged
If e.Group.Name = groupAllOptions.Name Then
SetFormHeight()
End If
End Sub
End Class