private void OnClient2Changed(object sender, EventArgs e) { try { //Load shippers and consignees for the selected client this.mShippers.Clear(); this.mShippers.LTLShipperTable.AddLTLShipperTableRow("", "", "", "", "", "", "", "", "", "", "", "", "", DateTime.MinValue, DateTime.MinValue, 1, "", "", DateTime.MinValue, "", null); this.mShippers.Merge(FreightGateway.ReadLTLShippersList(this.cboClient2.SelectedValue.ToString())); if (this.cboShipper.Items.Count > 0) { this.cboShipper.SelectedIndex = 0; } this.mConsignees.Clear(); this.mConsignees.LTLConsigneeTable.AddLTLConsigneeTableRow(0, "", "", "", "", "", "", "", "", "", "", "", "", DateTime.MinValue, DateTime.MinValue, 1, DateTime.MinValue, "", null); this.mConsignees.Merge(FreightGateway.ReadLTLConsigneesList(this.cboClient2.SelectedValue.ToString())); if (this.cboConsignee.Items.Count > 0) { this.cboConsignee.SelectedIndex = 0; } } catch (Exception ex) { App.ReportError(ex, true, LogLevel.Error); } }