Allow other time ref points only when shipcall is an arrival
This commit is contained in:
parent
dc39a62293
commit
004908e9c0
@ -123,6 +123,7 @@ namespace BreCalClient
|
|||||||
this.comboBoxDepartureBerth.SelectedIndex = -1;
|
this.comboBoxDepartureBerth.SelectedIndex = -1;
|
||||||
this.comboBoxDepartureBerth.IsEnabled = false;
|
this.comboBoxDepartureBerth.IsEnabled = false;
|
||||||
this.comboBoxArrivalBerth.IsEnabled = true;
|
this.comboBoxArrivalBerth.IsEnabled = true;
|
||||||
|
this.comboBoxTimeRef.IsEnabled = true;
|
||||||
break;
|
break;
|
||||||
case ShipcallType.Departure:
|
case ShipcallType.Departure:
|
||||||
this.datePickerETA.IsEnabled = false;
|
this.datePickerETA.IsEnabled = false;
|
||||||
@ -131,12 +132,16 @@ namespace BreCalClient
|
|||||||
this.comboBoxArrivalBerth.SelectedIndex = -1;
|
this.comboBoxArrivalBerth.SelectedIndex = -1;
|
||||||
this.comboBoxArrivalBerth.IsEnabled = false;
|
this.comboBoxArrivalBerth.IsEnabled = false;
|
||||||
this.comboBoxDepartureBerth.IsEnabled = true;
|
this.comboBoxDepartureBerth.IsEnabled = true;
|
||||||
|
this.comboBoxTimeRef.IsEnabled = false;
|
||||||
|
this.comboBoxTimeRef.SelectedIndex = 0;
|
||||||
break;
|
break;
|
||||||
case ShipcallType.Shifting:
|
case ShipcallType.Shifting:
|
||||||
this.datePickerETA.IsEnabled = true;
|
this.datePickerETA.IsEnabled = true;
|
||||||
this.datePickerETD.IsEnabled = true;
|
this.datePickerETD.IsEnabled = true;
|
||||||
this.comboBoxArrivalBerth.IsEnabled = true;
|
this.comboBoxArrivalBerth.IsEnabled = true;
|
||||||
this.comboBoxDepartureBerth.IsEnabled = true;
|
this.comboBoxDepartureBerth.IsEnabled = true;
|
||||||
|
this.comboBoxTimeRef.IsEnabled = false;
|
||||||
|
this.comboBoxTimeRef.SelectedIndex = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user