Fixed participant type evaluation for Times edit control

This commit is contained in:
Daniel Schick 2023-10-18 08:15:38 +02:00
parent e2a5f2e0d6
commit 9087d68025

View File

@ -29,8 +29,6 @@ namespace BreCalClient
public Extensions.TypeEnum CallType { get; set; } public Extensions.TypeEnum CallType { get; set; }
internal Extensions.ParticipantType ParticipantType { get; set; } = Extensions.ParticipantType.NONE;
#endregion #endregion
#region event handler #region event handler
@ -88,7 +86,9 @@ namespace BreCalClient
private void EnableControls() private void EnableControls()
{ {
switch (this.ParticipantType) Extensions.ParticipantType pType = (Extensions.ParticipantType) (this.Times.ParticipantType ?? 0);
switch (pType)
{ {
case Extensions.ParticipantType.MOORING: case Extensions.ParticipantType.MOORING:
case Extensions.ParticipantType.PORT_ADMINISTRATION: case Extensions.ParticipantType.PORT_ADMINISTRATION: