Fixed participant type evaluation for Times edit control
This commit is contained in:
parent
e2a5f2e0d6
commit
9087d68025
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user