Allow other time ref points only when shipcall is an arrival

This commit is contained in:
Daniel Schick 2024-04-10 11:51:49 +02:00
parent 7fec9905fd
commit cdcba3909e

View File

@ -123,6 +123,7 @@ namespace BreCalClient
this.comboBoxDepartureBerth.SelectedIndex = -1;
this.comboBoxDepartureBerth.IsEnabled = false;
this.comboBoxArrivalBerth.IsEnabled = true;
this.comboBoxTimeRef.IsEnabled = true;
break;
case ShipcallType.Departure:
this.datePickerETA.IsEnabled = false;
@ -131,12 +132,16 @@ namespace BreCalClient
this.comboBoxArrivalBerth.SelectedIndex = -1;
this.comboBoxArrivalBerth.IsEnabled = false;
this.comboBoxDepartureBerth.IsEnabled = true;
this.comboBoxTimeRef.IsEnabled = false;
this.comboBoxTimeRef.SelectedIndex = 0;
break;
case ShipcallType.Shifting:
this.datePickerETA.IsEnabled = true;
this.datePickerETD.IsEnabled = true;
this.comboBoxArrivalBerth.IsEnabled = true;
this.comboBoxDepartureBerth.IsEnabled = true;
this.comboBoxTimeRef.IsEnabled = false;
this.comboBoxTimeRef.SelectedIndex = 0;
break;
}
}