private void PuertoDestino_BT_Click(object sender, EventArgs e) { SelectInputForm form = new SelectInputForm(PuertoList.GetList(false)); if (form.ShowDialog(this) == DialogResult.OK) { PuertoInfo p = (PuertoInfo)form.Selected; _entity.PuertoDestino = p.Valor; } }
private void Despachante_BT_Click(object sender, EventArgs e) { if (_entity.PuertoDestino == string.Empty) { PgMng.ShowInfoException("Debe seleccionar un puerto de destino."); return; } PuertoList pl = PuertoList.GetList(true); PuertoInfo pi = pl.GetItemByProperty("Valor", _entity.PuertoDestino); DespachanteList despachantes = PuertoDespachanteList.GetDespachanteList(pi.Oid); CustomAgentSelectForm form = new CustomAgentSelectForm(this, despachantes); if (form.ShowDialog(this) == DialogResult.OK) { _custom_agency = form.Selected as DespachanteInfo; _entity.OidDespachante = _custom_agency.Oid; _entity.Despachante = _custom_agency.Nombre; Datos.ResetBindings(false); } }