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

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