Do port dependencies for comboboxes also when loading existing shipcall

This commit is contained in:
Daniel Schick 2024-12-02 08:52:47 +01:00
parent ddae95b784
commit e60a623753

View File

@ -359,9 +359,9 @@ namespace BreCalClient
}
}
if (BreCalLists.PortLookupDict.ContainsKey(this.ShipcallModel.Shipcall.PortId))
this.comboBoxHarbour.SelectedValue = this.ShipcallModel.Shipcall.PortId;
this.comboBoxHarbour.SelectionChanged += this.comboBoxHarbour_SelectionChanged;
if (BreCalLists.PortLookupDict.ContainsKey(this.ShipcallModel.Shipcall.PortId))
this.comboBoxHarbour.SelectedValue = this.ShipcallModel.Shipcall.PortId;
this.comboBoxHarbour.IsEnabled = this.ShipcallModel.AllowPortChange;
}