Do not run change port event handler during iinit

This commit is contained in:
Daniel Schick 2024-12-04 09:14:04 +01:00
parent e60a623753
commit 74b15e4b64

View File

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